OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ | 5 #ifndef COMPONENTS_SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ |
6 #define SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ | 6 #define COMPONENTS_SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "sync/syncable/directory_backing_store.h" | 11 #include "components/sync/syncable/directory_backing_store.h" |
12 | 12 |
13 namespace syncer { | 13 namespace syncer { |
14 namespace syncable { | 14 namespace syncable { |
15 | 15 |
16 // This implementation of DirectoryBackingStore does not manage its own | 16 // This implementation of DirectoryBackingStore does not manage its own |
17 // database. This makes it more flexible (and more complex) than the | 17 // database. This makes it more flexible (and more complex) than the |
18 // InMemoryDirectoryBackingStore. | 18 // InMemoryDirectoryBackingStore. |
19 class TestDirectoryBackingStore : public DirectoryBackingStore { | 19 class TestDirectoryBackingStore : public DirectoryBackingStore { |
20 public: | 20 public: |
21 // This constructor takes a handle to a database. The caller maintains | 21 // This constructor takes a handle to a database. The caller maintains |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DeleteEntries); | 61 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DeleteEntries); |
62 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, GenerateCacheGUID); | 62 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, GenerateCacheGUID); |
63 FRIEND_TEST_ALL_PREFIXES(MigrationTest, ToCurrentVersion); | 63 FRIEND_TEST_ALL_PREFIXES(MigrationTest, ToCurrentVersion); |
64 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateToLatestAndDump); | 64 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateToLatestAndDump); |
65 friend class MigrationTest; | 65 friend class MigrationTest; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace syncable | 68 } // namespace syncable |
69 } // namespace syncer | 69 } // namespace syncer |
70 | 70 |
71 #endif // SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ | 71 #endif // COMPONENTS_SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ |
OLD | NEW |