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

Unified Diff: components/offline_pages/background/request_coordinator_unittest.cc

Issue 2030773002: Add unit tests for the Background Scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable flaky test Created 4 years, 6 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: components/offline_pages/background/request_coordinator_unittest.cc
diff --git a/components/offline_pages/background/request_coordinator_unittest.cc b/components/offline_pages/background/request_coordinator_unittest.cc
index 95856826344349bcfbe9a435467f5d4021ae9446..08a187a231f629d2b8e30169642f2254a0089c91 100644
--- a/components/offline_pages/background/request_coordinator_unittest.cc
+++ b/components/offline_pages/background/request_coordinator_unittest.cc
@@ -91,7 +91,7 @@ class RequestCoordinatorTest
}
// Empty callback function
- void EmptyCallbackFunction() {
+ void EmptyCallbackFunction(bool result) {
}
// Callback for getting requests.
@@ -145,7 +145,7 @@ void RequestCoordinatorTest::GetRequestsDone(
}
TEST_F(RequestCoordinatorTest, StartProcessingWithNoRequests) {
- RequestCoordinator::ProcessingDoneCallback callback =
+ base::Callback<void(bool)> callback =
base::Bind(
&RequestCoordinatorTest::EmptyCallbackFunction,
base::Unretained(this));
« no previous file with comments | « components/offline_pages/background/request_coordinator.cc ('k') | components/offline_pages/background/request_picker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698