build: fix building content_unittests (#40491)
chore: fix building content_unittests
This commit is contained in:
parent
6697042c0a
commit
262723e394
4 changed files with 41 additions and 3 deletions
|
@ -5,6 +5,23 @@ Subject: allow disabling blink scheduler throttling per RenderView
|
||||||
|
|
||||||
This allows us to disable throttling for hidden windows.
|
This allows us to disable throttling for hidden windows.
|
||||||
|
|
||||||
|
diff --git a/content/browser/renderer_host/navigation_controller_impl_unittest.cc b/content/browser/renderer_host/navigation_controller_impl_unittest.cc
|
||||||
|
index 1e9ee2d6e96e61f69a5942377971e0f638a1ac01..33129b6f7606d032cf012801aca48550b09e09fa 100644
|
||||||
|
--- a/content/browser/renderer_host/navigation_controller_impl_unittest.cc
|
||||||
|
+++ b/content/browser/renderer_host/navigation_controller_impl_unittest.cc
|
||||||
|
@@ -160,6 +160,12 @@ class MockPageBroadcast : public blink::mojom::PageBroadcast {
|
||||||
|
(network::mojom::AttributionSupport support),
|
||||||
|
(override));
|
||||||
|
|
||||||
|
+ MOCK_METHOD(
|
||||||
|
+ void,
|
||||||
|
+ SetSchedulerThrottling,
|
||||||
|
+ (bool allowed),
|
||||||
|
+ (override));
|
||||||
|
+
|
||||||
|
mojo::PendingAssociatedRemote<blink::mojom::PageBroadcast> GetRemote() {
|
||||||
|
return receiver_.BindNewEndpointAndPassDedicatedRemote();
|
||||||
|
}
|
||||||
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
||||||
index 093bed2d057df4b12ae01b8edc11c7924233b0c5..43a24c45bc5adf1bb6a3eb00c3b3ad64e663522f 100644
|
index 093bed2d057df4b12ae01b8edc11c7924233b0c5..43a24c45bc5adf1bb6a3eb00c3b3ad64e663522f 100644
|
||||||
--- a/content/browser/renderer_host/render_view_host_impl.cc
|
--- a/content/browser/renderer_host/render_view_host_impl.cc
|
||||||
|
|
|
@ -110,7 +110,7 @@ index 697fa7c5e98e7ee16b1b5e676f60a9689f7aac2b..f5e7278a6e391cbab61bbd2981127beb
|
||||||
|
|
||||||
public_deps = [
|
public_deps = [
|
||||||
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
||||||
index 0967c510f870a6b66f0b577521e2d8df61f0c68d..317c8b68e2d5fb62ae73eec867d6c52a7132ff3c 100644
|
index 0967c510f870a6b66f0b577521e2d8df61f0c68d..e533490c0001ff3f0a3ffe4369215ca1510c408c 100644
|
||||||
--- a/content/test/BUILD.gn
|
--- a/content/test/BUILD.gn
|
||||||
+++ b/content/test/BUILD.gn
|
+++ b/content/test/BUILD.gn
|
||||||
@@ -482,6 +482,7 @@ static_library("test_support") {
|
@@ -482,6 +482,7 @@ static_library("test_support") {
|
||||||
|
@ -121,6 +121,14 @@ index 0967c510f870a6b66f0b577521e2d8df61f0c68d..317c8b68e2d5fb62ae73eec867d6c52a
|
||||||
]
|
]
|
||||||
|
|
||||||
public_deps = [
|
public_deps = [
|
||||||
|
@@ -2916,6 +2917,7 @@ test("content_unittests") {
|
||||||
|
}
|
||||||
|
|
||||||
|
configs += [ "//build/config:precompiled_headers" ]
|
||||||
|
+ configs += ["//electron/build/config:mas_build"]
|
||||||
|
|
||||||
|
public_deps = [ "//content:content_resources" ]
|
||||||
|
|
||||||
diff --git a/content/web_test/BUILD.gn b/content/web_test/BUILD.gn
|
diff --git a/content/web_test/BUILD.gn b/content/web_test/BUILD.gn
|
||||||
index e2a496c7be6045d0a69d4fdf227e4951602620ae..1fa040e47d6acdfcac203e30af88d5ac2db6e03f 100644
|
index e2a496c7be6045d0a69d4fdf227e4951602620ae..1fa040e47d6acdfcac203e30af88d5ac2db6e03f 100644
|
||||||
--- a/content/web_test/BUILD.gn
|
--- a/content/web_test/BUILD.gn
|
||||||
|
|
|
@ -77,10 +77,10 @@ index 3ef031b0c876c36c51a91ba9724f8f2fd7b455ac..646d9276a9ca6a55cfcb156380bd9435
|
||||||
SetAcceptLanguage(string new_accept_language);
|
SetAcceptLanguage(string new_accept_language);
|
||||||
|
|
||||||
diff --git a/services/network/test/test_network_context.h b/services/network/test/test_network_context.h
|
diff --git a/services/network/test/test_network_context.h b/services/network/test/test_network_context.h
|
||||||
index a133f8b85fce871219963bbcc428f1e7a0c97a2c..d6ea67709877567ad83c5d25e7d2936647f184ff 100644
|
index 5a15e699f24f0691f6d45c0e9f4dcf6f97944e31..462c432f36976b3dcc34fdc45515de9fb1f89524 100644
|
||||||
--- a/services/network/test/test_network_context.h
|
--- a/services/network/test/test_network_context.h
|
||||||
+++ b/services/network/test/test_network_context.h
|
+++ b/services/network/test/test_network_context.h
|
||||||
@@ -145,6 +145,7 @@ class TestNetworkContext : public mojom::NetworkContext {
|
@@ -147,6 +147,7 @@ class TestNetworkContext : public mojom::NetworkContext {
|
||||||
void CloseIdleConnections(CloseIdleConnectionsCallback callback) override {}
|
void CloseIdleConnections(CloseIdleConnectionsCallback callback) override {}
|
||||||
void SetNetworkConditions(const base::UnguessableToken& throttling_profile_id,
|
void SetNetworkConditions(const base::UnguessableToken& throttling_profile_id,
|
||||||
mojom::NetworkConditionsPtr conditions) override {}
|
mojom::NetworkConditionsPtr conditions) override {}
|
||||||
|
|
|
@ -208,3 +208,16 @@ index e696f8197cd9f5e158c148a207ae1398dd16c526..3ef031b0c876c36c51a91ba9724f8f2f
|
||||||
// Creates a new URLLoaderFactory with the given |params|.
|
// Creates a new URLLoaderFactory with the given |params|.
|
||||||
CreateURLLoaderFactory(pending_receiver<URLLoaderFactory> url_loader_factory,
|
CreateURLLoaderFactory(pending_receiver<URLLoaderFactory> url_loader_factory,
|
||||||
URLLoaderFactoryParams params);
|
URLLoaderFactoryParams params);
|
||||||
|
diff --git a/services/network/test/test_network_context.h b/services/network/test/test_network_context.h
|
||||||
|
index a133f8b85fce871219963bbcc428f1e7a0c97a2c..5a15e699f24f0691f6d45c0e9f4dcf6f97944e31 100644
|
||||||
|
--- a/services/network/test/test_network_context.h
|
||||||
|
+++ b/services/network/test/test_network_context.h
|
||||||
|
@@ -62,6 +62,8 @@ class TestNetworkContext : public mojom::NetworkContext {
|
||||||
|
void CreateURLLoaderFactory(
|
||||||
|
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver,
|
||||||
|
mojom::URLLoaderFactoryParamsPtr params) override {}
|
||||||
|
+ void SetCertVerifierClient(
|
||||||
|
+ mojo::PendingRemote<mojom::CertVerifierClient> client) override {}
|
||||||
|
void GetCookieManager(
|
||||||
|
mojo::PendingReceiver<mojom::CookieManager> cookie_manager) override {}
|
||||||
|
void GetRestrictedCookieManager(
|
||||||
|
|
Loading…
Reference in a new issue