blob: 277bfb96fd73cb44cd526d4c29a567bbe9b38862 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/libaddressinput/chromium/chrome_storage_impl.h"
#include <string>
#include "base/prefs/value_map_pref_store.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libaddressinput/chromium/storage_test_runner.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/callback.h"
namespace autofill {
// Tests for ChromeStorageImpl object.
class ChromeStorageImplTest : public testing::Test {
protected:
ChromeStorageImplTest()
: store_(new ValueMapPrefStore()),
storage_(store_.get()),
runner_(&storage_) {}
virtual ~ChromeStorageImplTest() {}
scoped_refptr<ValueMapPrefStore> store_;
ChromeStorageImpl storage_;
StorageTestRunner runner_;
};
TEST_F(ChromeStorageImplTest, StandardStorageTests) {
EXPECT_NO_FATAL_FAILURE(runner_.RunAllTests());
}
} // namespace autofill
|