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

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

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: same as PS6 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
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ecf61264cd43c2a37bfae1476fcf6b500c000595 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,
+ false /* data_saver_enabled */);
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,
+ false /* data_saver_enabled */);
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,
+ false /* data_saver_enabled */);
// 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,
+ false /* data_saver_enabled */);
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,
+ false /* data_saver_enabled */);
std::unique_ptr<TestDevToolsClientHost> client_host(
new TestDevToolsClientHost());
manager_->WorkerCreated(3, 1, instance);
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698