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 // Utilities that are useful in verifying the state of items in a | 5 // Utilities that are useful in verifying the state of items in a |
6 // syncable database. | 6 // syncable database. |
7 | 7 |
8 #ifndef SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ | 8 #ifndef SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ |
9 #define SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ | 9 #define SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ |
10 #pragma once | |
11 | 10 |
12 #include <string> | 11 #include <string> |
13 | 12 |
14 namespace syncer { | 13 namespace syncer { |
15 namespace syncable { | 14 namespace syncable { |
16 | 15 |
17 class BaseTransaction; | 16 class BaseTransaction; |
18 class Id; | 17 class Id; |
19 | 18 |
20 // Count the number of entries with a given name inside of a parent. | 19 // Count the number of entries with a given name inside of a parent. |
(...skipping 11 matching lines...) Expand all Loading... |
32 // Assert that there's only one entry by this name in this parent. | 31 // Assert that there's only one entry by this name in this parent. |
33 // Return the Id. | 32 // Return the Id. |
34 Id GetOnlyEntryWithName(BaseTransaction* rtrans, | 33 Id GetOnlyEntryWithName(BaseTransaction* rtrans, |
35 const syncable::Id& parent_id, | 34 const syncable::Id& parent_id, |
36 const std::string& name); | 35 const std::string& name); |
37 | 36 |
38 } // namespace syncable | 37 } // namespace syncable |
39 } // namespace syncer | 38 } // namespace syncer |
40 | 39 |
41 #endif // SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ | 40 #endif // SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ |
OLD | NEW |