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

Unified Diff: chrome/browser/android/offline_pages/evaluation/evaluation_test_scheduler.h

Issue 2432593002: [Offline Pages] Add basic evaluation tests and related changes. (Closed)
Patch Set: Fix build failure. Created 4 years, 2 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/android/offline_pages/evaluation/evaluation_test_scheduler.h
diff --git a/chrome/browser/android/offline_pages/evaluation/evaluation_test_scheduler.h b/chrome/browser/android/offline_pages/evaluation/evaluation_test_scheduler.h
new file mode 100644
index 0000000000000000000000000000000000000000..e17d436b709a5a4b2fd545a033e5ecc049dc58b2
--- /dev/null
+++ b/chrome/browser/android/offline_pages/evaluation/evaluation_test_scheduler.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHEDULER_H_
+#define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHEDULER_H_
+
+#include "components/offline_pages/background/scheduler.h"
+
+namespace offline_pages {
+namespace android {
+
+class EvaluationTestScheduler : public Scheduler {
+ public:
+ // Scheduler implementation.
+ void Schedule(const TriggerConditions& trigger_conditions) override;
+ void BackupSchedule(const TriggerConditions& trigger_conditions,
+ long delay_in_seconds) override;
+ void Unschedule() override;
+
+ // Callback used by user request.
+ void ImmediateScheduleCallback(bool result);
+};
+
+} // namespace android
+} // namespace offline_pages
+
+#endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHEDULER_H_
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/offline_pages/evaluation/evaluation_test_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698