| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/syncable/syncable.h" | 5 #include "chrome/browser/sync/syncable/syncable.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "base/stringprintf.h" | 29 #include "base/stringprintf.h" |
| 30 #include "base/threading/platform_thread.h" | 30 #include "base/threading/platform_thread.h" |
| 31 #include "base/tracked.h" | 31 #include "base/tracked.h" |
| 32 #include "base/values.h" | 32 #include "base/values.h" |
| 33 #include "chrome/browser/sync/engine/syncproto.h" | 33 #include "chrome/browser/sync/engine/syncproto.h" |
| 34 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 34 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
| 35 #include "chrome/browser/sync/syncable/directory_backing_store.h" | 35 #include "chrome/browser/sync/syncable/directory_backing_store.h" |
| 36 #include "chrome/browser/sync/syncable/directory_change_delegate.h" | 36 #include "chrome/browser/sync/syncable/directory_change_delegate.h" |
| 37 #include "chrome/browser/sync/syncable/directory_manager.h" | 37 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 38 #include "chrome/common/deprecated/event_sys-inl.h" | 38 #include "chrome/common/deprecated/event_sys-inl.h" |
| 39 #include "chrome/test/base/values_test_util.h" |
| 39 #include "chrome/test/sync/engine/test_id_factory.h" | 40 #include "chrome/test/sync/engine/test_id_factory.h" |
| 40 #include "chrome/test/sync/engine/test_syncable_utils.h" | 41 #include "chrome/test/sync/engine/test_syncable_utils.h" |
| 41 #include "chrome/test/sync/null_directory_change_delegate.h" | 42 #include "chrome/test/sync/null_directory_change_delegate.h" |
| 42 #include "chrome/test/values_test_util.h" | |
| 43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
| 44 #include "third_party/sqlite/sqlite3.h" | 44 #include "third_party/sqlite/sqlite3.h" |
| 45 | 45 |
| 46 using browser_sync::TestIdFactory; | 46 using browser_sync::TestIdFactory; |
| 47 using test::ExpectDictBooleanValue; | 47 using test::ExpectDictBooleanValue; |
| 48 using test::ExpectDictStringValue; | 48 using test::ExpectDictStringValue; |
| 49 | 49 |
| 50 namespace syncable { | 50 namespace syncable { |
| 51 | 51 |
| 52 class SyncableKernelTest : public testing::Test {}; | 52 class SyncableKernelTest : public testing::Test {}; |
| (...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { | 1807 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { |
| 1808 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); | 1808 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); |
| 1809 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); | 1809 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); |
| 1810 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); | 1810 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); |
| 1811 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); | 1811 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); |
| 1812 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); | 1812 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); |
| 1813 } | 1813 } |
| 1814 | 1814 |
| 1815 } // namespace | 1815 } // namespace |
| 1816 } // namespace syncable | 1816 } // namespace syncable |
| OLD | NEW |