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

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

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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) 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
11 #include <limits> 11 #include <limits>
12 #include <string> 12 #include <string>
13 13
14 #if !defined(OS_WIN) 14 #if !defined(OS_WIN)
15 #define MAX_PATH PATH_MAX 15 #define MAX_PATH PATH_MAX
16 #include <ostream> 16 #include <ostream>
17 #include <stdio.h> 17 #include <stdio.h>
18 #include <sys/ipc.h> 18 #include <sys/ipc.h>
19 #include <sys/sem.h> 19 #include <sys/sem.h>
20 #include <sys/times.h> 20 #include <sys/times.h>
21 #endif // !defined(OS_WIN) 21 #endif // !defined(OS_WIN)
22 22
23 #include "base/compiler_specific.h" 23 #include "base/compiler_specific.h"
24 #include "base/file_path.h" 24 #include "base/file_path.h"
25 #include "base/file_util.h" 25 #include "base/file_util.h"
26 #include "base/location.h"
26 #include "base/logging.h" 27 #include "base/logging.h"
27 #include "base/memory/scoped_ptr.h" 28 #include "base/memory/scoped_ptr.h"
28 #include "base/scoped_temp_dir.h" 29 #include "base/scoped_temp_dir.h"
29 #include "base/stringprintf.h" 30 #include "base/stringprintf.h"
30 #include "base/synchronization/condition_variable.h" 31 #include "base/synchronization/condition_variable.h"
31 #include "base/threading/platform_thread.h" 32 #include "base/threading/platform_thread.h"
32 #include "base/tracked.h"
33 #include "base/values.h" 33 #include "base/values.h"
34 #include "chrome/browser/sync/engine/syncproto.h" 34 #include "chrome/browser/sync/engine/syncproto.h"
35 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 35 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
36 #include "chrome/browser/sync/syncable/directory_backing_store.h" 36 #include "chrome/browser/sync/syncable/directory_backing_store.h"
37 #include "chrome/browser/sync/syncable/directory_change_delegate.h" 37 #include "chrome/browser/sync/syncable/directory_change_delegate.h"
38 #include "chrome/browser/sync/syncable/directory_manager.h" 38 #include "chrome/browser/sync/syncable/directory_manager.h"
39 #include "chrome/browser/sync/test/engine/test_id_factory.h" 39 #include "chrome/browser/sync/test/engine/test_id_factory.h"
40 #include "chrome/browser/sync/test/engine/test_syncable_utils.h" 40 #include "chrome/browser/sync/test/engine/test_syncable_utils.h"
41 #include "chrome/browser/sync/test/null_directory_change_delegate.h" 41 #include "chrome/browser/sync/test/null_directory_change_delegate.h"
42 #include "chrome/test/base/values_test_util.h" 42 #include "chrome/test/base/values_test_util.h"
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable_mock.cc ('k') | chrome/browser/sync/test/engine/mock_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698