[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / third_party / libaddressinput / chromium / chrome_storage_impl_unittest.cc
blob277bfb96fd73cb44cd526d4c29a567bbe9b38862
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "third_party/libaddressinput/chromium/chrome_storage_impl.h"
7 #include <string>
9 #include "base/prefs/value_map_pref_store.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/libaddressinput/chromium/storage_test_runner.h"
12 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/callback.h"
14 namespace autofill {
16 // Tests for ChromeStorageImpl object.
17 class ChromeStorageImplTest : public testing::Test {
18 protected:
19 ChromeStorageImplTest()
20 : store_(new ValueMapPrefStore()),
21 storage_(store_.get()),
22 runner_(&storage_) {}
24 virtual ~ChromeStorageImplTest() {}
26 scoped_refptr<ValueMapPrefStore> store_;
27 ChromeStorageImpl storage_;
28 StorageTestRunner runner_;
31 TEST_F(ChromeStorageImplTest, StandardStorageTests) {
32 EXPECT_NO_FATAL_FAILURE(runner_.RunAllTests());
35 } // namespace autofill