Commit 96a972a1 authored by Titouan Rigoudy's avatar Titouan Rigoudy Committed by Commit Bot

[CORS-RFC1918] Selectively re-enable broken test.

This change enables the test except when a conflicting feature is
enabled. It improves on the status quo (test disabled everywhere) until
the underlying failure can be fixed, letting the test run on all CI bots
except for the offending Network Service bot.

Bug: chromium:1142865
Change-Id: I4bb870d04c6b35961c1c32d9d3549d03afeaa3f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519693
Auto-Submit: Titouan Rigoudy <titouan@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Titouan Rigoudy <titouan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824400}
parent 9a60c144
......@@ -5,6 +5,7 @@
#include <map>
#include <string>
#include "base/feature_list.h"
#include "base/strings/string_piece.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
......@@ -15,6 +16,7 @@
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test_utils.h"
#include "extensions/common/extension_features.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gmock/include/gmock/gmock.h"
......@@ -145,9 +147,15 @@ IN_PROC_BROWSER_TEST_F(PrivateNetworkRequestBrowserTest,
// This test verifies that when a secure context served from the public address
// space loads a resource from the local network, the correct WebFeature is
// use-counted.
// Disabled, as explained in https://crbug.com/1143206
IN_PROC_BROWSER_TEST_F(PrivateNetworkRequestBrowserTest,
DISABLED_RecordsAddressSpaceFeatureForFetch) {
RecordsAddressSpaceFeatureForFetch) {
if (base::FeatureList::IsEnabled(
extensions_features::kForceWebRequestProxyForTest)) {
// Selectively disabled when requests are forced through WebRequest proxy.
// TODO(https://crbug.com/1143206): Fix test and remove this conditional.
return;
}
base::HistogramTester histogram_tester;
std::unique_ptr<net::EmbeddedTestServer> server = NewServer();
......@@ -166,9 +174,15 @@ IN_PROC_BROWSER_TEST_F(PrivateNetworkRequestBrowserTest,
// This test verifies that when a non-secure context served from the public
// address space loads a resource from the local network, the correct WebFeature
// is use-counted.
IN_PROC_BROWSER_TEST_F(
PrivateNetworkRequestBrowserTest,
DISABLED_RecordsAddressSpaceFeatureForFetchInNonSecureContext) {
IN_PROC_BROWSER_TEST_F(PrivateNetworkRequestBrowserTest,
RecordsAddressSpaceFeatureForFetchInNonSecureContext) {
if (base::FeatureList::IsEnabled(
extensions_features::kForceWebRequestProxyForTest)) {
// Selectively disabled when requests are forced through WebRequest proxy.
// TODO(https://crbug.com/1143206): Fix test and remove this conditional.
return;
}
base::HistogramTester histogram_tester;
std::unique_ptr<net::EmbeddedTestServer> server = NewServer();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment