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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some minor diffs Created 8 years, 9 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
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 "chrome/browser/sync/syncable/syncable.h" 5 #include "sync/syncable/syncable.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.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/scoped_temp_dir.h" 16 #include "base/scoped_temp_dir.h"
17 #include "base/stringprintf.h" 17 #include "base/stringprintf.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 "chrome/browser/sync/engine/syncproto.h" 22 #include "sync/engine/syncproto.h"
23 #include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_han dler.h" 23 #include "sync/util/test_unrecoverable_error_handler.h"
24 #include "chrome/browser/sync/syncable/directory_backing_store.h" 24 #include "sync/syncable/directory_backing_store.h"
25 #include "chrome/browser/sync/syncable/directory_change_delegate.h" 25 #include "sync/syncable/directory_change_delegate.h"
26 #include "chrome/browser/sync/syncable/on_disk_directory_backing_store.h" 26 #include "sync/syncable/on_disk_directory_backing_store.h"
27 #include "chrome/browser/sync/test/engine/test_id_factory.h" 27 #include "sync/test/engine/test_id_factory.h"
28 #include "chrome/browser/sync/test/engine/test_syncable_utils.h" 28 #include "sync/test/engine/test_syncable_utils.h"
29 #include "chrome/browser/sync/test/fake_encryptor.h" 29 #include "sync/test/fake_encryptor.h"
30 #include "chrome/browser/sync/test/null_directory_change_delegate.h" 30 #include "sync/test/null_directory_change_delegate.h"
31 #include "chrome/browser/sync/test/null_transaction_observer.h" 31 #include "sync/test/null_transaction_observer.h"
32 #include "sync/protocol/bookmark_specifics.pb.h" 32 #include "sync/protocol/bookmark_specifics.pb.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 #include "third_party/sqlite/sqlite3.h"
35 34
36 using base::ExpectDictBooleanValue; 35 using base::ExpectDictBooleanValue;
37 using base::ExpectDictStringValue; 36 using base::ExpectDictStringValue;
38 using browser_sync::FakeEncryptor; 37 using browser_sync::FakeEncryptor;
39 using browser_sync::TestIdFactory; 38 using browser_sync::TestIdFactory;
40 using browser_sync::TestUnrecoverableErrorHandler; 39 using browser_sync::TestUnrecoverableErrorHandler;
41 40
42 namespace syncable { 41 namespace syncable {
43 42
44 class SyncableKernelTest : public testing::Test {}; 43 class SyncableKernelTest : public testing::Test {};
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { 1733 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) {
1735 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1734 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true));
1736 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1735 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true));
1737 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); 1736 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false));
1738 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); 1737 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false));
1739 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); 1738 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true));
1740 } 1739 }
1741 1740
1742 } // namespace 1741 } // namespace
1743 } // namespace syncable 1742 } // namespace syncable
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698