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 CHROME_BROWSER_SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ | 5 #ifndef SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ | 6 #define SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "chrome/browser/sync/syncable/directory_backing_store.h" | 10 #include "sync/syncable/directory_backing_store.h" |
11 | 11 |
12 namespace syncable { | 12 namespace syncable { |
13 | 13 |
14 // This implementation of DirectoryBackingStore does not manage its own | 14 // This implementation of DirectoryBackingStore does not manage its own |
15 // database. This makes it more flexible (and more complex) than the | 15 // database. This makes it more flexible (and more complex) than the |
16 // InMemoryDirectoryBackingStore. | 16 // InMemoryDirectoryBackingStore. |
17 class TestDirectoryBackingStore : public DirectoryBackingStore { | 17 class TestDirectoryBackingStore : public DirectoryBackingStore { |
18 public: | 18 public: |
19 // This constructor takes a handle to a database. The caller maintains | 19 // This constructor takes a handle to a database. The caller maintains |
20 // ownership of this handle. | 20 // ownership of this handle. |
(...skipping 22 matching lines...) Expand all Loading... |
43 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, ModelTypeIds); | 43 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, ModelTypeIds); |
44 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, Corruption); | 44 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, Corruption); |
45 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DeleteEntries); | 45 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DeleteEntries); |
46 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, GenerateCacheGUID); | 46 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, GenerateCacheGUID); |
47 FRIEND_TEST_ALL_PREFIXES(MigrationTest, ToCurrentVersion); | 47 FRIEND_TEST_ALL_PREFIXES(MigrationTest, ToCurrentVersion); |
48 friend class MigrationTest; | 48 friend class MigrationTest; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace syncable | 51 } // namespace syncable |
52 | 52 |
53 #endif // CHROME_BROWSER_SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ | 53 #endif // SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_ |
OLD | NEW |