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

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

Issue 11638018: [sync] Componentize sync: Part 5: Eliminate filename collisions in sync.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comments Created 8 years 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_read_transaction.cc ('k') | sync/syncable/syncable_util.cc » ('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 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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "base/synchronization/condition_variable.h" 17 #include "base/synchronization/condition_variable.h"
18 #include "base/test/values_test_util.h" 18 #include "base/test/values_test_util.h"
19 #include "base/threading/platform_thread.h" 19 #include "base/threading/platform_thread.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "sync/internal_api/public/base/node_ordinal.h" 21 #include "sync/internal_api/public/base/node_ordinal.h"
22 #include "sync/protocol/bookmark_specifics.pb.h" 22 #include "sync/protocol/bookmark_specifics.pb.h"
23 #include "sync/syncable/directory_backing_store.h" 23 #include "sync/syncable/directory_backing_store.h"
24 #include "sync/syncable/directory_change_delegate.h" 24 #include "sync/syncable/directory_change_delegate.h"
25 #include "sync/syncable/in_memory_directory_backing_store.h" 25 #include "sync/syncable/in_memory_directory_backing_store.h"
26 #include "sync/syncable/metahandle_set.h" 26 #include "sync/syncable/metahandle_set.h"
27 #include "sync/syncable/mutable_entry.h" 27 #include "sync/syncable/mutable_entry.h"
28 #include "sync/syncable/on_disk_directory_backing_store.h" 28 #include "sync/syncable/on_disk_directory_backing_store.h"
29 #include "sync/syncable/read_transaction.h"
30 #include "sync/syncable/syncable_proto_util.h" 29 #include "sync/syncable/syncable_proto_util.h"
30 #include "sync/syncable/syncable_read_transaction.h"
31 #include "sync/syncable/syncable_util.h" 31 #include "sync/syncable/syncable_util.h"
32 #include "sync/syncable/write_transaction.h" 32 #include "sync/syncable/syncable_write_transaction.h"
33 #include "sync/test/engine/test_id_factory.h" 33 #include "sync/test/engine/test_id_factory.h"
34 #include "sync/test/engine/test_syncable_utils.h" 34 #include "sync/test/engine/test_syncable_utils.h"
35 #include "sync/test/fake_encryptor.h" 35 #include "sync/test/fake_encryptor.h"
36 #include "sync/test/null_directory_change_delegate.h" 36 #include "sync/test/null_directory_change_delegate.h"
37 #include "sync/test/null_transaction_observer.h" 37 #include "sync/test/null_transaction_observer.h"
38 #include "sync/util/test_unrecoverable_error_handler.h" 38 #include "sync/util/test_unrecoverable_error_handler.h"
39 #include "testing/gtest/include/gtest/gtest.h" 39 #include "testing/gtest/include/gtest/gtest.h"
40 40
41 namespace syncer { 41 namespace syncer {
42 namespace syncable { 42 namespace syncable {
(...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after
2135 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); 2135 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true));
2136 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); 2136 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true));
2137 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); 2137 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false));
2138 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); 2138 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false));
2139 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); 2139 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true));
2140 } 2140 }
2141 2141
2142 } // namespace 2142 } // namespace
2143 } // namespace syncable 2143 } // namespace syncable
2144 } // namespace syncer 2144 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/syncable_read_transaction.cc ('k') | sync/syncable/syncable_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698