OLD | NEW |
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 Loading... |
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 |
OLD | NEW |