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

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

Issue 9483002: Move values_test_util.{h,cc} to base/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 "chrome/browser/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/threading/platform_thread.h" 20 #include "base/threading/platform_thread.h"
20 #include "base/values.h" 21 #include "base/values.h"
21 #include "chrome/browser/sync/engine/syncproto.h" 22 #include "chrome/browser/sync/engine/syncproto.h"
22 #include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_han dler.h" 23 #include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_han dler.h"
23 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 24 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
24 #include "chrome/browser/sync/syncable/directory_backing_store.h" 25 #include "chrome/browser/sync/syncable/directory_backing_store.h"
25 #include "chrome/browser/sync/syncable/directory_change_delegate.h" 26 #include "chrome/browser/sync/syncable/directory_change_delegate.h"
26 #include "chrome/browser/sync/syncable/directory_manager.h" 27 #include "chrome/browser/sync/syncable/directory_manager.h"
27 #include "chrome/browser/sync/test/engine/test_id_factory.h" 28 #include "chrome/browser/sync/test/engine/test_id_factory.h"
28 #include "chrome/browser/sync/test/engine/test_syncable_utils.h" 29 #include "chrome/browser/sync/test/engine/test_syncable_utils.h"
29 #include "chrome/browser/sync/test/null_directory_change_delegate.h" 30 #include "chrome/browser/sync/test/null_directory_change_delegate.h"
30 #include "chrome/browser/sync/test/null_transaction_observer.h" 31 #include "chrome/browser/sync/test/null_transaction_observer.h"
31 #include "chrome/test/base/values_test_util.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 #include "third_party/sqlite/sqlite3.h" 33 #include "third_party/sqlite/sqlite3.h"
34 34
35 using browser_sync::TestIdFactory; 35 using browser_sync::TestIdFactory;
36 using test::ExpectDictBooleanValue; 36 using base::ExpectDictBooleanValue;
37 using test::ExpectDictStringValue; 37 using base::ExpectDictStringValue;
38 38
39 namespace syncable { 39 namespace syncable {
40 40
41 class SyncableKernelTest : public testing::Test {}; 41 class SyncableKernelTest : public testing::Test {};
42 42
43 // TODO(akalin): Add unit tests for EntryKernel::ContainsString(). 43 // TODO(akalin): Add unit tests for EntryKernel::ContainsString().
44 44
45 TEST_F(SyncableKernelTest, ToValue) { 45 TEST_F(SyncableKernelTest, ToValue) {
46 EntryKernel kernel; 46 EntryKernel kernel;
47 scoped_ptr<DictionaryValue> value(kernel.ToValue()); 47 scoped_ptr<DictionaryValue> value(kernel.ToValue());
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { 1862 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) {
1863 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1863 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true));
1864 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1864 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true));
1865 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); 1865 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false));
1866 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); 1866 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false));
1867 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); 1867 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true));
1868 } 1868 }
1869 1869
1870 } // namespace 1870 } // namespace
1871 } // namespace syncable 1871 } // namespace syncable
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698