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

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

Issue 9826035: [Sync] Display the client server traffic log in about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 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 | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer_unittest.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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/time.h" 6 #include "base/time.h"
7 #include "sync/engine/sync_scheduler.h" 7 #include "sync/engine/sync_scheduler.h"
8 #include "sync/sessions/sync_session_context.h" 8 #include "sync/sessions/sync_session_context.h"
9 #include "sync/sessions/test_util.h" 9 #include "sync/sessions/test_util.h"
10 #include "sync/test/engine/fake_model_safe_worker_registrar.h" 10 #include "sync/test/engine/fake_model_safe_worker_registrar.h"
(...skipping 20 matching lines...) Expand all
31 Syncer* syncer = new Syncer(); 31 Syncer* syncer = new Syncer();
32 ModelSafeRoutingInfo routes; 32 ModelSafeRoutingInfo routes;
33 routes[syncable::BOOKMARKS] = GROUP_UI; 33 routes[syncable::BOOKMARKS] = GROUP_UI;
34 routes[syncable::NIGORI] = GROUP_PASSIVE; 34 routes[syncable::NIGORI] = GROUP_PASSIVE;
35 registrar_.reset(new FakeModelSafeWorkerRegistrar(routes)); 35 registrar_.reset(new FakeModelSafeWorkerRegistrar(routes));
36 connection_.reset(new MockConnectionManager(NULL)); 36 connection_.reset(new MockConnectionManager(NULL));
37 context_ = 37 context_ =
38 new SyncSessionContext( 38 new SyncSessionContext(
39 connection_.get(), dir_maker_.directory(), 39 connection_.get(), dir_maker_.directory(),
40 registrar_.get(), &extensions_activity_monitor_, 40 registrar_.get(), &extensions_activity_monitor_,
41 std::vector<SyncEngineEventListener*>(), NULL); 41 std::vector<SyncEngineEventListener*>(), NULL, NULL);
42 context_->set_notifications_enabled(true); 42 context_->set_notifications_enabled(true);
43 context_->set_account_name("Test"); 43 context_->set_account_name("Test");
44 scheduler_.reset( 44 scheduler_.reset(
45 new SyncScheduler("TestSyncSchedulerWhitebox", context_, syncer)); 45 new SyncScheduler("TestSyncSchedulerWhitebox", context_, syncer));
46 } 46 }
47 47
48 virtual void TearDown() { 48 virtual void TearDown() {
49 scheduler_.reset(); 49 scheduler_.reset();
50 } 50 }
51 51
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 struct SyncScheduler::SyncSessionJob job; 261 struct SyncScheduler::SyncSessionJob job;
262 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION; 262 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION;
263 job.scheduled_start = TimeTicks::Now(); 263 job.scheduled_start = TimeTicks::Now();
264 job.is_canary_job = true; 264 job.is_canary_job = true;
265 SyncScheduler::JobProcessDecision decision = DecideOnJob(job); 265 SyncScheduler::JobProcessDecision decision = DecideOnJob(job);
266 266
267 EXPECT_EQ(decision, SyncScheduler::CONTINUE); 267 EXPECT_EQ(decision, SyncScheduler::CONTINUE);
268 } 268 }
269 269
270 } // namespace browser_sync 270 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698