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