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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head 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/syncable_mock.cc ('k') | sync/syncable/syncable_util.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 <string> 5 #include <string>
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 24 matching lines...) Expand all
35 #include "sync/test/null_transaction_observer.h" 35 #include "sync/test/null_transaction_observer.h"
36 #include "sync/util/test_unrecoverable_error_handler.h" 36 #include "sync/util/test_unrecoverable_error_handler.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 38
39 using base::ExpectDictBooleanValue; 39 using base::ExpectDictBooleanValue;
40 using base::ExpectDictStringValue; 40 using base::ExpectDictStringValue;
41 using syncer::FakeEncryptor; 41 using syncer::FakeEncryptor;
42 using syncer::TestIdFactory; 42 using syncer::TestIdFactory;
43 using syncer::TestUnrecoverableErrorHandler; 43 using syncer::TestUnrecoverableErrorHandler;
44 44
45 namespace syncer {
45 namespace syncable { 46 namespace syncable {
46 47
47 class SyncableKernelTest : public testing::Test {}; 48 class SyncableKernelTest : public testing::Test {};
48 49
49 // TODO(akalin): Add unit tests for EntryKernel::ContainsString(). 50 // TODO(akalin): Add unit tests for EntryKernel::ContainsString().
50 51
51 TEST_F(SyncableKernelTest, ToValue) { 52 TEST_F(SyncableKernelTest, ToValue) {
52 EntryKernel kernel; 53 EntryKernel kernel;
53 scoped_ptr<DictionaryValue> value(kernel.ToValue()); 54 scoped_ptr<DictionaryValue> value(kernel.ToValue());
54 if (value.get()) { 55 if (value.get()) {
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { 1931 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) {
1931 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1932 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true));
1932 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1933 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true));
1933 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); 1934 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false));
1934 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); 1935 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false));
1935 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); 1936 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true));
1936 } 1937 }
1937 1938
1938 } // namespace 1939 } // namespace
1939 } // namespace syncable 1940 } // namespace syncable
1941 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/syncable_mock.cc ('k') | sync/syncable/syncable_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698