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

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

Issue 2245073003: [Sync] Clean up intra-sync DEPS significantly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments/fix test. Created 4 years, 4 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/stl_util.h" 17 #include "base/stl_util.h"
18 #include "base/synchronization/condition_variable.h" 18 #include "base/synchronization/condition_variable.h"
19 #include "base/test/values_test_util.h" 19 #include "base/test/values_test_util.h"
20 #include "base/threading/platform_thread.h" 20 #include "base/threading/platform_thread.h"
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "components/sync/base/fake_encryptor.h"
23 #include "components/sync/base/test_unrecoverable_error_handler.h" 24 #include "components/sync/base/test_unrecoverable_error_handler.h"
24 #include "components/sync/protocol/bookmark_specifics.pb.h" 25 #include "components/sync/protocol/bookmark_specifics.pb.h"
25 #include "components/sync/syncable/directory_backing_store.h" 26 #include "components/sync/syncable/directory_backing_store.h"
26 #include "components/sync/syncable/directory_change_delegate.h" 27 #include "components/sync/syncable/directory_change_delegate.h"
27 #include "components/sync/syncable/directory_unittest.h" 28 #include "components/sync/syncable/directory_unittest.h"
28 #include "components/sync/syncable/in_memory_directory_backing_store.h" 29 #include "components/sync/syncable/in_memory_directory_backing_store.h"
29 #include "components/sync/syncable/metahandle_set.h" 30 #include "components/sync/syncable/metahandle_set.h"
30 #include "components/sync/syncable/mutable_entry.h" 31 #include "components/sync/syncable/mutable_entry.h"
31 #include "components/sync/syncable/on_disk_directory_backing_store.h" 32 #include "components/sync/syncable/on_disk_directory_backing_store.h"
32 #include "components/sync/syncable/syncable_proto_util.h" 33 #include "components/sync/syncable/syncable_proto_util.h"
33 #include "components/sync/syncable/syncable_read_transaction.h" 34 #include "components/sync/syncable/syncable_read_transaction.h"
34 #include "components/sync/syncable/syncable_util.h" 35 #include "components/sync/syncable/syncable_util.h"
35 #include "components/sync/syncable/syncable_write_transaction.h" 36 #include "components/sync/syncable/syncable_write_transaction.h"
36 #include "components/sync/test/engine/test_id_factory.h" 37 #include "components/sync/test/engine/test_id_factory.h"
37 #include "components/sync/test/engine/test_syncable_utils.h" 38 #include "components/sync/test/engine/test_syncable_utils.h"
38 #include "components/sync/test/fake_encryptor.h"
39 #include "components/sync/test/null_directory_change_delegate.h" 39 #include "components/sync/test/null_directory_change_delegate.h"
40 #include "components/sync/test/null_transaction_observer.h" 40 #include "components/sync/test/null_transaction_observer.h"
41 #include "testing/gtest/include/gtest/gtest.h" 41 #include "testing/gtest/include/gtest/gtest.h"
42 42
43 namespace syncer { 43 namespace syncer {
44 namespace syncable { 44 namespace syncable {
45 45
46 using base::ExpectDictBooleanValue; 46 using base::ExpectDictBooleanValue;
47 using base::ExpectDictStringValue; 47 using base::ExpectDictStringValue;
48 48
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { 655 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) {
656 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); 656 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true));
657 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); 657 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true));
658 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); 658 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false));
659 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); 659 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false));
660 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); 660 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true));
661 } 661 }
662 662
663 } // namespace syncable 663 } // namespace syncable
664 } // namespace syncer 664 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/syncable/directory_unittest.h ('k') | components/sync/test/engine/mock_model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698