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

Side by Side Diff: chrome/browser/policy/test_task_runner.h

Issue 10916235: Record policy usage statistics every 24 hours. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Tests (+ minor changes to PolicyStatisticsCollector to support them) Created 8 years, 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698