| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |