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 // A tool making it easier to create IDs for unit testing. | 5 // A tool making it easier to create IDs for unit testing. |
6 | 6 |
7 #ifndef SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_ | 7 #ifndef SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_ |
8 #define SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_ | 8 #define SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_ |
9 #pragma once | |
10 | 9 |
11 #include <string> | 10 #include <string> |
12 | 11 |
13 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
14 #include "sync/syncable/syncable_id.h" | 13 #include "sync/syncable/syncable_id.h" |
15 | 14 |
16 namespace syncer { | 15 namespace syncer { |
17 | 16 |
18 class TestIdFactory { | 17 class TestIdFactory { |
19 public: | 18 public: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 int next_value() { | 63 int next_value() { |
65 return next_value_++; | 64 return next_value_++; |
66 } | 65 } |
67 int next_value_; | 66 int next_value_; |
68 }; | 67 }; |
69 | 68 |
70 } // namespace syncer | 69 } // namespace syncer |
71 | 70 |
72 #endif // SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_ | 71 #endif // SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_ |
73 | 72 |
OLD | NEW |