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

Unified Diff: components/offline_pages/core/prefetch/prefetch_request_fetcher_unittest.cc

Issue 2921783002: [Offline Prefetch] Pass api key to offline prefetch requests (Closed)
Patch Set: Rebase Created 3 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
Index: components/offline_pages/core/prefetch/prefetch_request_fetcher_unittest.cc
diff --git a/components/offline_pages/core/prefetch/prefetch_request_fetcher_unittest.cc b/components/offline_pages/core/prefetch/prefetch_request_fetcher_unittest.cc
index 3dbed4f122106807fa2163b360395f8495c38406..8464c3cbcfcdafdd02a672eab98a303f01238f41 100644
--- a/components/offline_pages/core/prefetch/prefetch_request_fetcher_unittest.cc
+++ b/components/offline_pages/core/prefetch/prefetch_request_fetcher_unittest.cc
@@ -20,6 +20,7 @@ using testing::SaveArg;
namespace offline_pages {
namespace {
+const version_info::Channel kTestChannel = version_info::Channel::UNKNOWN;
const char kTestURLPath[] = "/test";
const char kTestMessage[] = "Testing";
} // namespace
@@ -73,7 +74,8 @@ PrefetchRequestStatus PrefetchRequestFetcherTest::RunFetcher(
base::MockCallback<PrefetchRequestFetcher::FinishedCallback> callback;
std::unique_ptr<PrefetchRequestFetcher> fetcher =
PrefetchRequestFetcher::CreateForPost(kTestURLPath, kTestMessage,
- request_context(), callback.Get());
+ kTestChannel, request_context(),
+ callback.Get());
PrefetchRequestStatus status;
std::string data;

Powered by Google App Engine
This is Rietveld 408576698