OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_TEST_SYNC_ENGINE_TEST_SYNCABLE_UTILS_H_ | 8 #ifndef CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ |
9 #define CHROME_TEST_SYNC_ENGINE_TEST_SYNCABLE_UTILS_H_ | 9 #define CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "chrome/browser/sync/syncable/syncable.h" | 14 #include "chrome/browser/sync/syncable/syncable.h" |
15 | 15 |
16 namespace syncable { | 16 namespace syncable { |
17 | 17 |
18 class BaseTransaction; | 18 class BaseTransaction; |
19 class Id; | 19 class Id; |
(...skipping 11 matching lines...) Expand all Loading... |
31 const std::string& name); | 31 const std::string& name); |
32 | 32 |
33 // Assert that there's only one entry by this name in this parent. | 33 // Assert that there's only one entry by this name in this parent. |
34 // Return the Id. | 34 // Return the Id. |
35 Id GetOnlyEntryWithName(BaseTransaction* rtrans, | 35 Id GetOnlyEntryWithName(BaseTransaction* rtrans, |
36 const syncable::Id& parent_id, | 36 const syncable::Id& parent_id, |
37 const std::string& name); | 37 const std::string& name); |
38 | 38 |
39 } // namespace syncable | 39 } // namespace syncable |
40 | 40 |
41 #endif // CHROME_TEST_SYNC_ENGINE_TEST_SYNCABLE_UTILS_H_ | 41 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_SYNCABLE_UTILS_H_ |
OLD | NEW |