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

Side by Side Diff: sync/engine/syncer_unittest.cc

Issue 38803003: sync: Implement per-type update processing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix progress marker fetching Created 7 years, 1 month 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 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/message_loop.h" 21 #include "base/message_loop/message_loop.h"
22 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/stringprintf.h" 23 #include "base/strings/stringprintf.h"
24 #include "base/time/time.h" 24 #include "base/time/time.h"
25 #include "build/build_config.h" 25 #include "build/build_config.h"
26 #include "sync/engine/get_commit_ids.h" 26 #include "sync/engine/get_commit_ids.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"
29 #include "sync/engine/sync_scheduler_impl.h" 28 #include "sync/engine/sync_scheduler_impl.h"
30 #include "sync/engine/syncer.h" 29 #include "sync/engine/syncer.h"
31 #include "sync/engine/syncer_proto_util.h" 30 #include "sync/engine/syncer_proto_util.h"
32 #include "sync/engine/traffic_recorder.h" 31 #include "sync/engine/traffic_recorder.h"
33 #include "sync/internal_api/public/base/cancelation_signal.h" 32 #include "sync/internal_api/public/base/cancelation_signal.h"
34 #include "sync/internal_api/public/base/model_type.h" 33 #include "sync/internal_api/public/base/model_type.h"
35 #include "sync/internal_api/public/engine/model_safe_worker.h" 34 #include "sync/internal_api/public/engine/model_safe_worker.h"
36 #include "sync/protocol/bookmark_specifics.pb.h" 35 #include "sync/protocol/bookmark_specifics.pb.h"
37 #include "sync/protocol/nigori_specifics.pb.h" 36 #include "sync/protocol/nigori_specifics.pb.h"
38 #include "sync/protocol/preference_specifics.pb.h" 37 #include "sync/protocol/preference_specifics.pb.h"
(...skipping 4622 matching lines...) Expand 10 before | Expand all | Expand 10 after
4661 EXPECT_EQ("xyz", final_monitor_records["xyz"].extension_id); 4660 EXPECT_EQ("xyz", final_monitor_records["xyz"].extension_id);
4662 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count); 4661 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count);
4663 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count); 4662 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count);
4664 } else { 4663 } else {
4665 EXPECT_TRUE(final_monitor_records.empty()) 4664 EXPECT_TRUE(final_monitor_records.empty())
4666 << "Should not restore records after successful bookmark commit."; 4665 << "Should not restore records after successful bookmark commit.";
4667 } 4666 }
4668 } 4667 }
4669 4668
4670 } // namespace syncer 4669 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698