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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_apitest.cc

Issue 2013573007: Catch CSP violations in InProcessBrowserTest Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: double check test is run Created 4 years, 4 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
Index: chrome/browser/extensions/api/notifications/notifications_apitest.cc
diff --git a/chrome/browser/extensions/api/notifications/notifications_apitest.cc b/chrome/browser/extensions/api/notifications/notifications_apitest.cc
index 426eea9aa2ed4f1af50186fc70c0f2c2ba1fa3a4..9af7e6359bfd3ce15ef17d86fae096812a635231 100644
--- a/chrome/browser/extensions/api/notifications/notifications_apitest.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_apitest.cc
@@ -119,6 +119,8 @@ IN_PROC_BROWSER_TEST_F(NotificationsApiTest, TestEvents) {
IN_PROC_BROWSER_TEST_F(NotificationsApiTest, TestCSP) {
ASSERT_TRUE(RunExtensionTest("notifications/api/csp")) << message_;
+ // The violation is not intentional. See crbug.com/616181
+ SetExpectCSPErrorMessages(true);
}
IN_PROC_BROWSER_TEST_F(NotificationsApiTest, TestByUser) {

Powered by Google App Engine
This is Rietveld 408576698