OLD | NEW |
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 <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/strings/string_number_conversions.h" |
23 #include "base/stringprintf.h" | 23 #include "base/strings/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 "sync/engine/get_commit_ids_command.h" | 26 #include "sync/engine/get_commit_ids_command.h" |
27 #include "sync/engine/net/server_connection_manager.h" | 27 #include "sync/engine/net/server_connection_manager.h" |
28 #include "sync/engine/process_updates_command.h" | 28 #include "sync/engine/process_updates_command.h" |
29 #include "sync/engine/sync_scheduler_impl.h" | 29 #include "sync/engine/sync_scheduler_impl.h" |
30 #include "sync/engine/syncer.h" | 30 #include "sync/engine/syncer.h" |
31 #include "sync/engine/syncer_proto_util.h" | 31 #include "sync/engine/syncer_proto_util.h" |
32 #include "sync/engine/throttled_data_type_tracker.h" | 32 #include "sync/engine/throttled_data_type_tracker.h" |
33 #include "sync/engine/traffic_recorder.h" | 33 #include "sync/engine/traffic_recorder.h" |
(...skipping 4790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4824 EXPECT_EQ("xyz", final_monitor_records["xyz"].extension_id); | 4824 EXPECT_EQ("xyz", final_monitor_records["xyz"].extension_id); |
4825 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count); | 4825 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count); |
4826 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count); | 4826 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count); |
4827 } else { | 4827 } else { |
4828 EXPECT_TRUE(final_monitor_records.empty()) | 4828 EXPECT_TRUE(final_monitor_records.empty()) |
4829 << "Should not restore records after successful bookmark commit."; | 4829 << "Should not restore records after successful bookmark commit."; |
4830 } | 4830 } |
4831 } | 4831 } |
4832 | 4832 |
4833 } // namespace syncer | 4833 } // namespace syncer |
OLD | NEW |