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

Side by Side Diff: components/sync/engine_impl/syncer_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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
OLDNEW
1 // Copyright 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 // 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 "components/sync/engine_impl/syncer.h" 8 #include "components/sync/engine_impl/syncer.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
11 #include <stdint.h>
12 11
13 #include <algorithm> 12 #include <algorithm>
14 #include <limits> 13 #include <limits>
15 #include <list> 14 #include <list>
16 #include <map> 15 #include <map>
17 #include <memory> 16 #include <memory>
18 #include <set> 17 #include <set>
19 #include <string> 18 #include <string>
20 19
21 #include "base/bind.h" 20 #include "base/bind.h"
22 #include "base/bind_helpers.h" 21 #include "base/bind_helpers.h"
23 #include "base/callback.h"
24 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
25 #include "base/location.h" 23 #include "base/location.h"
26 #include "base/macros.h"
27 #include "base/message_loop/message_loop.h" 24 #include "base/message_loop/message_loop.h"
28 #include "base/strings/string_number_conversions.h" 25 #include "base/strings/string_number_conversions.h"
29 #include "base/test/histogram_tester.h" 26 #include "base/test/histogram_tester.h"
30 #include "base/time/time.h" 27 #include "base/time/time.h"
31 #include "build/build_config.h" 28 #include "build/build_config.h"
32 #include "components/sync/base/cancelation_signal.h" 29 #include "components/sync/base/cancelation_signal.h"
33 #include "components/sync/base/cryptographer.h" 30 #include "components/sync/base/cryptographer.h"
34 #include "components/sync/base/extensions_activity.h"
35 #include "components/sync/base/fake_encryptor.h" 31 #include "components/sync/base/fake_encryptor.h"
36 #include "components/sync/base/model_type.h"
37 #include "components/sync/base/time.h" 32 #include "components/sync/base/time.h"
38 #include "components/sync/engine/cycle/commit_counters.h" 33 #include "components/sync/engine/cycle/commit_counters.h"
39 #include "components/sync/engine/cycle/status_counters.h" 34 #include "components/sync/engine/cycle/status_counters.h"
40 #include "components/sync/engine/cycle/update_counters.h" 35 #include "components/sync/engine/cycle/update_counters.h"
41 #include "components/sync/engine/model_safe_worker.h" 36 #include "components/sync/engine/model_safe_worker.h"
42 #include "components/sync/engine_impl/backoff_delay_provider.h" 37 #include "components/sync/engine_impl/backoff_delay_provider.h"
43 #include "components/sync/engine_impl/cycle/mock_debug_info_getter.h" 38 #include "components/sync/engine_impl/cycle/mock_debug_info_getter.h"
44 #include "components/sync/engine_impl/cycle/sync_cycle_context.h" 39 #include "components/sync/engine_impl/cycle/sync_cycle_context.h"
45 #include "components/sync/engine_impl/get_commit_ids.h" 40 #include "components/sync/engine_impl/get_commit_ids.h"
46 #include "components/sync/engine_impl/net/server_connection_manager.h" 41 #include "components/sync/engine_impl/net/server_connection_manager.h"
(...skipping 5798 matching lines...) Expand 10 before | Expand all | Expand 10 after
5845 EXPECT_EQ("xyz", final_monitor_records["xyz"].extension_id); 5840 EXPECT_EQ("xyz", final_monitor_records["xyz"].extension_id);
5846 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count); 5841 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count);
5847 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count); 5842 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count);
5848 } else { 5843 } else {
5849 EXPECT_TRUE(final_monitor_records.empty()) 5844 EXPECT_TRUE(final_monitor_records.empty())
5850 << "Should not restore records after successful bookmark commit."; 5845 << "Should not restore records after successful bookmark commit.";
5851 } 5846 }
5852 } 5847 }
5853 5848
5854 } // namespace syncer 5849 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/syncer_proto_util_unittest.cc ('k') | components/sync/engine_impl/syncer_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698