Commit 0a7f5359 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

Check the android bot do not override default origin trial key.

The origin trial "CrossOriginOpenerPolicyReporting" is not properly
recognized on the Android bot.

I suspect the default origin trial test key is overriden. This patch
adds a check to ensure this isn't the case.

Bug: 1119555,1116413
Change-Id: I86e8f1fe6b5e2cc7b8ffd301bc96c0d4d810a844
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2374788Reviewed-by: default avatarCamille Lamy <clamy@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802147}
parent 31f43be3
......@@ -2370,6 +2370,11 @@ class CoopReportingOriginTrialBrowserTest : public ContentBrowserTest {
void SetUpCommandLine(base::CommandLine* command_line) final {
ContentBrowserTest::SetUpCommandLine(command_line);
command_line->AppendSwitch(switches::kIgnoreCertificateErrors);
// TODO(https://crbug.com/1119555): Remove this once fixed.
// This test relies on the origin-trial's public key to keep its default
// value. Overriding it would break the test.
CHECK(!command_line->HasSwitch("origin-trial-public-key"));
}
private:
......
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