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

Side by Side Diff: sync/syncable/syncable_id_unittest.cc

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 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/syncable/nigori_util.cc ('k') | sync/syncable/syncable_mock.h » ('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 #include "sync/syncable/syncable_id.h" 5 #include "sync/syncable/syncable_id.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/test/values_test_util.h" 10 #include "base/test/values_test_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "sync/test/engine/test_id_factory.h" 12 #include "sync/test/engine/test_id_factory.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using std::vector;
16
17 namespace syncer { 15 namespace syncer {
18 namespace syncable { 16 namespace syncable {
19 17
20 using syncer::TestIdFactory; 18 using std::vector;
21 19
22 class SyncableIdTest : public testing::Test { }; 20 class SyncableIdTest : public testing::Test { };
23 21
24 TEST(SyncableIdTest, TestIDCreation) { 22 TEST(SyncableIdTest, TestIDCreation) {
25 vector<Id> v; 23 vector<Id> v;
26 v.push_back(TestIdFactory::FromNumber(5)); 24 v.push_back(TestIdFactory::FromNumber(5));
27 v.push_back(TestIdFactory::FromNumber(1)); 25 v.push_back(TestIdFactory::FromNumber(1));
28 v.push_back(TestIdFactory::FromNumber(-5)); 26 v.push_back(TestIdFactory::FromNumber(-5));
29 v.push_back(TestIdFactory::MakeLocal("A")); 27 v.push_back(TestIdFactory::MakeLocal("A"));
30 v.push_back(TestIdFactory::MakeLocal("B")); 28 v.push_back(TestIdFactory::MakeLocal("B"));
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 base::ExpectStringValue("r", Id::CreateFromServerId("0").ToValue()); 87 base::ExpectStringValue("r", Id::CreateFromServerId("0").ToValue());
90 base::ExpectStringValue("svalue", Id::CreateFromServerId("value").ToValue()); 88 base::ExpectStringValue("svalue", Id::CreateFromServerId("value").ToValue());
91 89
92 base::ExpectStringValue("r", Id::CreateFromClientString("0").ToValue()); 90 base::ExpectStringValue("r", Id::CreateFromClientString("0").ToValue());
93 base::ExpectStringValue("cvalue", 91 base::ExpectStringValue("cvalue",
94 Id::CreateFromClientString("value").ToValue()); 92 Id::CreateFromClientString("value").ToValue());
95 } 93 }
96 94
97 } // namespace syncable 95 } // namespace syncable
98 } // namespace syncer 96 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/nigori_util.cc ('k') | sync/syncable/syncable_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698