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

Unified 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: Fixed compilation 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/test_task_runner.h
diff --git a/chrome/browser/policy/test_task_runner.h b/chrome/browser/policy/test_task_runner.h
new file mode 100644
index 0000000000000000000000000000000000000000..8b19778a0e2476833c1f661815c98b9542725e47
--- /dev/null
+++ b/chrome/browser/policy/test_task_runner.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_POLICY_TEST_TASK_RUNNER_H_
+#define CHROME_BROWSER_POLICY_TEST_TASK_RUNNER_H_
+
+#include "base/basictypes.h"
+#include "base/callback.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace policy {
+
+class TestTaskRunner : public base::TaskRunner {
+ public:
+ TestTaskRunner();
+
+ virtual bool RunsTasksOnCurrentThread() const OVERRIDE { return true; }
+ MOCK_METHOD3(PostDelayedTask, bool(const tracked_objects::Location&,
+ const base::Closure&,
+ base::TimeDelta));
+
+ protected:
+ virtual ~TestTaskRunner();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestTaskRunner);
+};
+
+} // namespace policy
+
+#endif // CHROME_BROWSER_POLICY_TEST_TASK_RUNNER_H_
« no previous file with comments | « chrome/browser/policy/policy_statistics_collector_unittest.cc ('k') | chrome/browser/policy/test_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698