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

Unified Diff: content/browser/devtools/shared_worker_devtools_manager_unittest.cc

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: fix #include "public/web/WebDataSaverFlag.h" 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: content/browser/devtools/shared_worker_devtools_manager_unittest.cc
diff --git a/content/browser/devtools/shared_worker_devtools_manager_unittest.cc b/content/browser/devtools/shared_worker_devtools_manager_unittest.cc
index 54ce04e5a2125763e89b2a437fab407c18b726cf..97a3955a115565d4a7ff8f0fee33674844d58d3f 100644
--- a/content/browser/devtools/shared_worker_devtools_manager_unittest.cc
+++ b/content/browser/devtools/shared_worker_devtools_manager_unittest.cc
@@ -108,7 +108,8 @@ TEST_F(SharedWorkerDevToolsManagerTest, BasicTest) {
GURL("http://example.com/w.js"), base::string16(), base::string16(),
blink::kWebContentSecurityPolicyTypeReport, blink::kWebAddressSpacePublic,
browser_context_->GetResourceContext(), partition_id_,
- blink::kWebSharedWorkerCreationContextTypeNonsecure);
+ blink::kWebSharedWorkerCreationContextTypeNonsecure,
+ blink::WebDataSaverFlag::kDisabled);
agent_host = manager_->GetDevToolsAgentHostForWorker(1, 1);
EXPECT_FALSE(agent_host.get());
@@ -190,12 +191,14 @@ TEST_F(SharedWorkerDevToolsManagerTest, AttachTest) {
GURL("http://example.com/w1.js"), base::string16(), base::string16(),
blink::kWebContentSecurityPolicyTypeReport, blink::kWebAddressSpacePublic,
browser_context_->GetResourceContext(), partition_id_,
- blink::kWebSharedWorkerCreationContextTypeNonsecure);
+ blink::kWebSharedWorkerCreationContextTypeNonsecure,
+ blink::WebDataSaverFlag::kDisabled);
SharedWorkerInstance instance2(
GURL("http://example.com/w2.js"), base::string16(), base::string16(),
blink::kWebContentSecurityPolicyTypeReport, blink::kWebAddressSpacePublic,
browser_context_->GetResourceContext(), partition_id_,
- blink::kWebSharedWorkerCreationContextTypeNonsecure);
+ blink::kWebSharedWorkerCreationContextTypeNonsecure,
+ blink::WebDataSaverFlag::kDisabled);
// Created -> GetDevToolsAgentHost -> Register -> Started -> Destroyed
std::unique_ptr<TestDevToolsClientHost> client_host1(
@@ -275,7 +278,8 @@ TEST_F(SharedWorkerDevToolsManagerTest, ReattachTest) {
GURL("http://example.com/w3.js"), base::string16(), base::string16(),
blink::kWebContentSecurityPolicyTypeReport, blink::kWebAddressSpacePublic,
browser_context_->GetResourceContext(), partition_id_,
- blink::kWebSharedWorkerCreationContextTypeNonsecure);
+ blink::kWebSharedWorkerCreationContextTypeNonsecure,
+ blink::WebDataSaverFlag::kDisabled);
std::unique_ptr<TestDevToolsClientHost> client_host(
new TestDevToolsClientHost());
// Created -> GetDevToolsAgentHost -> Register -> Destroyed
@@ -306,7 +310,8 @@ TEST_F(SharedWorkerDevToolsManagerTest, PauseOnStartTest) {
GURL("http://example.com/w3.js"), base::string16(), base::string16(),
blink::kWebContentSecurityPolicyTypeReport, blink::kWebAddressSpacePublic,
browser_context_->GetResourceContext(), partition_id_,
- blink::kWebSharedWorkerCreationContextTypeNonsecure);
+ blink::kWebSharedWorkerCreationContextTypeNonsecure,
+ blink::WebDataSaverFlag::kDisabled);
std::unique_ptr<TestDevToolsClientHost> client_host(
new TestDevToolsClientHost());
manager_->WorkerCreated(3, 1, instance);

Powered by Google App Engine
This is Rietveld 408576698