Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: sync/test/engine/test_id_factory.h

Issue 16358024: Use a direct include of strings headers in rlz/, sandbox/, skia/, sql/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/test/engine/test_directory_setter_upper.cc ('k') | sync/test/local_sync_test_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "sync/syncable/syncable_id.h" 13 #include "sync/syncable/syncable_id.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 class TestIdFactory { 17 class TestIdFactory {
18 public: 18 public:
19 TestIdFactory() : next_value_(1337000) {} 19 TestIdFactory() : next_value_(1337000) {}
20 ~TestIdFactory() {} 20 ~TestIdFactory() {}
21 21
22 // Get the root ID. 22 // Get the root ID.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int next_value() { 63 int next_value() {
64 return next_value_++; 64 return next_value_++;
65 } 65 }
66 int next_value_; 66 int next_value_;
67 }; 67 };
68 68
69 } // namespace syncer 69 } // namespace syncer
70 70
71 #endif // SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_ 71 #endif // SYNC_TEST_ENGINE_TEST_ID_FACTORY_H_
72 72
OLDNEW
« no previous file with comments | « sync/test/engine/test_directory_setter_upper.cc ('k') | sync/test/local_sync_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698