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

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

Issue 2015603002: PrerenderingLoader initial integration with PrerenderManager/PrerenderHandle and make it unit-testa… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds mock adapter member initialization in constructor Created 4 years, 7 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
« no previous file with comments | « components/offline_pages/background/request_coordinator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ca6b3632dbb3ea2ee7b89456ce828f73cd750d14..ab506f0aab026eeacf09e13283d31e26ba100f8b 100644
--- a/components/offline_pages/background/request_coordinator_unittest.cc
+++ b/components/offline_pages/background/request_coordinator_unittest.cc
@@ -6,6 +6,7 @@
#include <memory>
#include <utility>
+#include <vector>
#include "base/bind.h"
#include "base/location.h"
@@ -55,7 +56,8 @@ class OfflinerStub : public Offliner {
const CompletionCallback& callback) override {
// Post the callback on the run loop.
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, request, Offliner::SAVED));
+ FROM_HERE,
+ base::Bind(callback, request, Offliner::RequestStatus::SAVED));
return true;
}
@@ -172,7 +174,8 @@ TEST_F(RequestCoordinatorTest, SavePageLater) {
EXPECT_TRUE(scheduler_stub->schedule_called());
// Check that the offliner callback got a response.
- EXPECT_EQ(Offliner::SAVED, coordinator()->last_offlining_status());
+ EXPECT_EQ(Offliner::RequestStatus::SAVED,
+ coordinator()->last_offlining_status());
// TODO(petewil): Expect that the scheduler got notified.
}
« no previous file with comments | « components/offline_pages/background/request_coordinator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698