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

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

Issue 19627002: Use a direct include of the message_loop header in ppapi/, printing/, rlz/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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 // A fake implementation of the SyncScheduler. If needed, we should add default 5 // A fake implementation of the SyncScheduler. If needed, we should add default
6 // logic needed for tests (invoking callbacks, etc) here rather than in higher 6 // logic needed for tests (invoking callbacks, etc) here rather than in higher
7 // level test classes. 7 // level test classes.
8 8
9 #ifndef SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 9 #ifndef SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
10 #define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 10 #define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
11 11
12 #include "base/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "sync/engine/sync_scheduler.h" 13 #include "sync/engine/sync_scheduler.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 class FakeSyncScheduler : public SyncScheduler { 17 class FakeSyncScheduler : public SyncScheduler {
18 public: 18 public:
19 FakeSyncScheduler(); 19 FakeSyncScheduler();
20 virtual ~FakeSyncScheduler(); 20 virtual ~FakeSyncScheduler();
21 21
22 virtual void Start(Mode mode) OVERRIDE; 22 virtual void Start(Mode mode) OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void OnSyncProtocolError( 59 virtual void OnSyncProtocolError(
60 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; 60 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE;
61 61
62 private: 62 private:
63 base::MessageLoop* const created_on_loop_; 63 base::MessageLoop* const created_on_loop_;
64 }; 64 };
65 65
66 } // namespace syncer 66 } // namespace syncer
67 67
68 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 68 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « sync/test/accounts_client/test_accounts_client.cc ('k') | sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698