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

Side by Side Diff: sync/engine/syncer_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 // Syncer unit tests. Unfortunately a lot of these tests 5 // Syncer unit tests. Unfortunately a lot of these tests
6 // are outdated and need to be reworked and updated. 6 // are outdated and need to be reworked and updated.
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <limits> 9 #include <limits>
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/bind_helpers.h" 16 #include "base/bind_helpers.h"
17 #include "base/callback.h" 17 #include "base/callback.h"
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/location.h" 19 #include "base/location.h"
20 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
21 #include "base/message_loop.h" 21 #include "base/message_loop.h"
22 #include "base/string_number_conversions.h" 22 #include "base/string_number_conversions.h"
23 #include "base/stringprintf.h" 23 #include "base/stringprintf.h"
24 #include "base/time.h" 24 #include "base/time.h"
25 #include "build/build_config.h" 25 #include "build/build_config.h"
26 #include "chrome/browser/sync/engine/get_commit_ids_command.h" 26 #include "sync/engine/get_commit_ids_command.h"
27 #include "chrome/browser/sync/engine/model_safe_worker.h" 27 #include "sync/engine/model_safe_worker.h"
28 #include "chrome/browser/sync/engine/net/server_connection_manager.h" 28 #include "sync/engine/net/server_connection_manager.h"
29 #include "chrome/browser/sync/engine/nigori_util.h" 29 #include "sync/engine/nigori_util.h"
30 #include "chrome/browser/sync/engine/process_updates_command.h" 30 #include "sync/engine/process_updates_command.h"
31 #include "chrome/browser/sync/engine/syncer.h" 31 #include "sync/engine/syncer.h"
32 #include "chrome/browser/sync/engine/syncer_proto_util.h" 32 #include "sync/engine/syncer_proto_util.h"
33 #include "chrome/browser/sync/engine/syncer_util.h" 33 #include "sync/engine/syncer_util.h"
34 #include "chrome/browser/sync/engine/syncproto.h" 34 #include "sync/engine/syncproto.h"
35 #include "chrome/browser/sync/sessions/sync_session_context.h"
36 #include "chrome/browser/sync/syncable/model_type.h"
37 #include "chrome/browser/sync/syncable/syncable.h"
38 #include "chrome/browser/sync/test/engine/fake_model_worker.h"
39 #include "chrome/browser/sync/test/engine/mock_connection_manager.h"
40 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h"
41 #include "chrome/browser/sync/test/engine/test_id_factory.h"
42 #include "chrome/browser/sync/test/engine/test_syncable_utils.h"
43 #include "chrome/browser/sync/test/fake_encryptor.h"
44 #include "chrome/browser/sync/test/fake_extensions_activity_monitor.h"
45 #include "chrome/browser/sync/util/cryptographer.h"
46 #include "chrome/browser/sync/util/time.h"
47 #include "sync/protocol/bookmark_specifics.pb.h" 35 #include "sync/protocol/bookmark_specifics.pb.h"
48 #include "sync/protocol/nigori_specifics.pb.h" 36 #include "sync/protocol/nigori_specifics.pb.h"
49 #include "sync/protocol/preference_specifics.pb.h" 37 #include "sync/protocol/preference_specifics.pb.h"
50 #include "sync/protocol/sync.pb.h" 38 #include "sync/protocol/sync.pb.h"
39 #include "sync/sessions/sync_session_context.h"
40 #include "sync/syncable/model_type.h"
41 #include "sync/syncable/syncable.h"
42 #include "sync/test/engine/fake_model_worker.h"
43 #include "sync/test/engine/mock_connection_manager.h"
44 #include "sync/test/engine/test_directory_setter_upper.h"
45 #include "sync/test/engine/test_id_factory.h"
46 #include "sync/test/engine/test_syncable_utils.h"
47 #include "sync/test/fake_encryptor.h"
48 #include "sync/test/fake_extensions_activity_monitor.h"
49 #include "sync/util/cryptographer.h"
50 #include "sync/util/time.h"
51 #include "testing/gtest/include/gtest/gtest.h" 51 #include "testing/gtest/include/gtest/gtest.h"
52 52
53 using base::TimeDelta; 53 using base::TimeDelta;
54 54
55 using std::map; 55 using std::map;
56 using std::multimap; 56 using std::multimap;
57 using std::set; 57 using std::set;
58 using std::string; 58 using std::string;
59 59
60 namespace browser_sync { 60 namespace browser_sync {
(...skipping 4451 matching lines...) Expand 10 before | Expand all | Expand 10 after
4512 Add(low_id_); 4512 Add(low_id_);
4513 Add(high_id_); 4513 Add(high_id_);
4514 SyncShareAsDelegate(); 4514 SyncShareAsDelegate();
4515 ExpectLocalOrderIsByServerId(); 4515 ExpectLocalOrderIsByServerId();
4516 } 4516 }
4517 4517
4518 const SyncerTest::CommitOrderingTest 4518 const SyncerTest::CommitOrderingTest
4519 SyncerTest::CommitOrderingTest::LAST_COMMIT_ITEM = {-1, TestIdFactory::root()}; 4519 SyncerTest::CommitOrderingTest::LAST_COMMIT_ITEM = {-1, TestIdFactory::root()};
4520 4520
4521 } // namespace browser_sync 4521 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698