Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_POLICY_TEST_TASK_RUNNER_H_ | |
| 6 #define CHROME_BROWSER_POLICY_TEST_TASK_RUNNER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/callback.h" | |
| 10 #include "base/location.h" | |
| 11 #include "base/single_thread_task_runner.h" | |
| 12 #include "testing/gmock/include/gmock/gmock.h" | |
| 13 | |
| 14 namespace policy { | |
| 15 | |
| 16 class TestTaskRunner : public base::TaskRunner { | |
| 17 public: | |
| 18 TestTaskRunner(); | |
| 19 | |
| 20 virtual bool RunsTasksOnCurrentThread() const OVERRIDE { return true; } | |
| 21 MOCK_METHOD3(PostDelayedTask, bool(const tracked_objects::Location&, | |
| 22 const base::Closure&, | |
| 23 base::TimeDelta)); | |
|
Joao da Silva
2012/09/20 12:06:21
#include "base/time.h"
qfel
2012/09/20 13:00:02
This just overrides TaskRunner's method, so TaskRu
| |
| 24 | |
| 25 protected: | |
| 26 virtual ~TestTaskRunner(); | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(TestTaskRunner); | |
| 30 }; | |
| 31 | |
| 32 } // namespace policy | |
| 33 | |
| 34 #endif // CHROME_BROWSER_POLICY_TEST_TASK_RUNNER_H_ | |
| OLD | NEW |