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

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

Issue 217633003: sync: Remove TrafficRecorder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_ui.cc ('k') | sync/engine/syncer_proto_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/callback.h" 6 #include "base/callback.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/test/test_timeouts.h" 10 #include "base/test/test_timeouts.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 connection_.reset(new MockConnectionManager(directory(), 129 connection_.reset(new MockConnectionManager(directory(),
130 &cancelation_signal_)); 130 &cancelation_signal_));
131 connection_->SetServerReachable(); 131 connection_->SetServerReachable();
132 132
133 model_type_registry_.reset(new ModelTypeRegistry(workers_, directory())); 133 model_type_registry_.reset(new ModelTypeRegistry(workers_, directory()));
134 134
135 context_.reset(new SyncSessionContext( 135 context_.reset(new SyncSessionContext(
136 connection_.get(), directory(), 136 connection_.get(), directory(),
137 extensions_activity_.get(), 137 extensions_activity_.get(),
138 std::vector<SyncEngineEventListener*>(), NULL, NULL, 138 std::vector<SyncEngineEventListener*>(), NULL,
139 model_type_registry_.get(), 139 model_type_registry_.get(),
140 true, // enable keystore encryption 140 true, // enable keystore encryption
141 false, // force enable pre-commit GU avoidance 141 false, // force enable pre-commit GU avoidance
142 "fake_invalidator_client_id")); 142 "fake_invalidator_client_id"));
143 context_->SetRoutingInfo(routing_info_); 143 context_->SetRoutingInfo(routing_info_);
144 context_->set_notifications_enabled(true); 144 context_->set_notifications_enabled(true);
145 context_->set_account_name("Test"); 145 context_->set_account_name("Test");
146 scheduler_.reset( 146 scheduler_.reset(
147 new SyncSchedulerImpl("TestSyncScheduler", 147 new SyncSchedulerImpl("TestSyncScheduler",
148 BackoffDelayProvider::FromDefaults(), 148 BackoffDelayProvider::FromDefaults(),
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess), 1384 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess),
1385 RecordSyncShare(&times))); 1385 RecordSyncShare(&times)));
1386 1386
1387 // Run to wait for retrying. 1387 // Run to wait for retrying.
1388 RunLoop(); 1388 RunLoop();
1389 1389
1390 StopSyncScheduler(); 1390 StopSyncScheduler();
1391 } 1391 }
1392 1392
1393 } // namespace syncer 1393 } // namespace syncer
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_ui.cc ('k') | sync/engine/syncer_proto_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698