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

Side by Side Diff: sync/test/engine/fake_sync_scheduler.cc

Issue 14113050: sync: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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/test/engine/fake_sync_scheduler.h ('k') | sync/test/engine/syncer_command_test.h » ('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 "sync/test/engine/fake_sync_scheduler.h" 5 #include "sync/test/engine/fake_sync_scheduler.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 FakeSyncScheduler::FakeSyncScheduler() 9 FakeSyncScheduler::FakeSyncScheduler()
10 : created_on_loop_(MessageLoop::current()) {} 10 : created_on_loop_(base::MessageLoop::current()) {}
11 11
12 FakeSyncScheduler::~FakeSyncScheduler() {} 12 FakeSyncScheduler::~FakeSyncScheduler() {}
13 13
14 void FakeSyncScheduler::Start(Mode mode) { 14 void FakeSyncScheduler::Start(Mode mode) {
15 } 15 }
16 16
17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) { 17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) {
18 created_on_loop_->PostTask(FROM_HERE, callback); 18 created_on_loop_->PostTask(FROM_HERE, callback);
19 } 19 }
20 20
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() { 74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() {
75 } 75 }
76 76
77 void FakeSyncScheduler::OnSyncProtocolError( 77 void FakeSyncScheduler::OnSyncProtocolError(
78 const sessions::SyncSessionSnapshot& snapshot) { 78 const sessions::SyncSessionSnapshot& snapshot) {
79 } 79 }
80 80
81 } // namespace syncer 81 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/test/engine/fake_sync_scheduler.h ('k') | sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698