Rename ConfiguredProxyResolutionService test-only functions #2.
This CL renames the two CreateFixed functions to CreateFixedForTest for
readability.
Bug: 1320187
Change-Id: I00451619aff78ba2f698a51dfdab2119788d57a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3778966
Auto-Submit: Yoichi Osato <[email protected]>
Reviewed-by: Yutaka Hirano <[email protected]>
Commit-Queue: Yutaka Hirano <[email protected]>
Commit-Queue: Yoichi Osato <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1026662}
diff --git a/net/websockets/websocket_end_to_end_test.cc b/net/websockets/websocket_end_to_end_test.cc
index b27642b3..b4d1281 100644
--- a/net/websockets/websocket_end_to_end_test.cc
+++ b/net/websockets/websocket_end_to_end_test.cc
@@ -362,7 +362,7 @@
std::string proxy_config =
"https=" + proxy_server.host_port_pair().ToString();
std::unique_ptr<ProxyResolutionService> proxy_resolution_service(
- ConfiguredProxyResolutionService::CreateFixed(
+ ConfiguredProxyResolutionService::CreateFixedForTest(
proxy_config, TRAFFIC_ANNOTATION_FOR_TESTS));
ASSERT_TRUE(proxy_resolution_service);
context_builder_->set_proxy_resolution_service(
@@ -398,8 +398,9 @@
proxy_config.proxy_rules().bypass_rules.AddRulesToSubtractImplicit();
std::unique_ptr<ProxyResolutionService> proxy_resolution_service(
- ConfiguredProxyResolutionService::CreateFixed(ProxyConfigWithAnnotation(
- proxy_config, TRAFFIC_ANNOTATION_FOR_TESTS)));
+ ConfiguredProxyResolutionService::CreateFixedForTest(
+ ProxyConfigWithAnnotation(proxy_config,
+ TRAFFIC_ANNOTATION_FOR_TESTS)));
ASSERT_TRUE(proxy_resolution_service);
context_builder_->set_proxy_resolution_service(
std::move(proxy_resolution_service));
@@ -426,8 +427,9 @@
proxy_config.proxy_rules().bypass_rules.AddRulesToSubtractImplicit();
std::unique_ptr<ProxyResolutionService> proxy_resolution_service(
- ConfiguredProxyResolutionService::CreateFixed(ProxyConfigWithAnnotation(
- proxy_config, TRAFFIC_ANNOTATION_FOR_TESTS)));
+ ConfiguredProxyResolutionService::CreateFixedForTest(
+ ProxyConfigWithAnnotation(proxy_config,
+ TRAFFIC_ANNOTATION_FOR_TESTS)));
context_builder_->set_proxy_resolution_service(
std::move(proxy_resolution_service));
InitialiseContext();