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

Unified Diff: components/offline_pages/core/prefetch/prefetch_request_operation_response_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_operation_response_unittest.cc
diff --git a/components/offline_pages/core/prefetch/prefetch_request_operation_response_unittest.cc b/components/offline_pages/core/prefetch/prefetch_request_operation_response_unittest.cc
index 22d676d84fc984b2100842649d068d4fe791856e..cd5994571938b41fe32c3703eda771551a69b840 100644
--- a/components/offline_pages/core/prefetch/prefetch_request_operation_response_unittest.cc
+++ b/components/offline_pages/core/prefetch/prefetch_request_operation_response_unittest.cc
@@ -23,6 +23,7 @@ using testing::SaveArg;
namespace offline_pages {
namespace {
+const version_info::Channel kTestChannel = version_info::Channel::UNKNOWN;
const char kTestURL[] = "http://example.com";
const char kTestURL2[] = "http://example.com/2";
const char kTestURL3[] = "http://example.com/3";
@@ -53,7 +54,7 @@ class GeneratePageBundleRequestBuilder : public RequestBuilder {
const PrefetchRequestFinishedCallback& callback) override {
std::vector<std::string> pages = {kTestURL, kTestURL2};
fetcher_.reset(new GeneratePageBundleRequest(
- kTestUserAgent, kTestGCMID, kTestMaxBundleSize, pages,
+ kTestUserAgent, kTestGCMID, kTestMaxBundleSize, pages, kTestChannel,
request_context_getter, callback));
}
@@ -65,7 +66,7 @@ class GetOperationRequestBuilder : public RequestBuilder {
public:
void CreateRequest(net::URLRequestContextGetter* request_context_getter,
const PrefetchRequestFinishedCallback& callback) override {
- fetcher_.reset(new GetOperationRequest(kTestMethodName,
+ fetcher_.reset(new GetOperationRequest(kTestMethodName, kTestChannel,
request_context_getter, callback));
}

Powered by Google App Engine
This is Rietveld 408576698