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

Unified Diff: chrome/browser/permissions/permissions_browsertest.cc

Issue 2385033002: Hookup the plugin placeholder to the Flash permission prompt (Closed)
Patch Set: Hookup the plugin placeholder to the Flash permission prompt Created 4 years, 2 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/permissions/permissions_browsertest.cc
diff --git a/chrome/browser/permissions/permissions_browsertest.cc b/chrome/browser/permissions/permissions_browsertest.cc
index c4a77d6ff31182b16319aa2e83ce849dcaea57ef..a95a94f3e43bcc9dfe36ccf3bf5cd4494f1ab7c3 100644
--- a/chrome/browser/permissions/permissions_browsertest.cc
+++ b/chrome/browser/permissions/permissions_browsertest.cc
@@ -63,8 +63,8 @@ void PermissionsBrowserTest::CommonFailsIfDismissed() {
prompt_factory()->set_response_type(PermissionRequestManager::DISMISS);
TriggerPrompt();
- EXPECT_EQ(1, prompt_factory()->total_request_count());
EXPECT_FALSE(FeatureUsageSucceeds());
+ EXPECT_EQ(1, prompt_factory()->total_request_count());
}
void PermissionsBrowserTest::CommonFailsIfBlocked() {
@@ -72,8 +72,8 @@ void PermissionsBrowserTest::CommonFailsIfBlocked() {
prompt_factory()->set_response_type(PermissionRequestManager::DENY_ALL);
TriggerPrompt();
- EXPECT_EQ(1, prompt_factory()->total_request_count());
EXPECT_FALSE(FeatureUsageSucceeds());
+ EXPECT_EQ(1, prompt_factory()->total_request_count());
}
void PermissionsBrowserTest::CommonSucceedsIfAllowed() {
@@ -81,6 +81,6 @@ void PermissionsBrowserTest::CommonSucceedsIfAllowed() {
prompt_factory()->set_response_type(PermissionRequestManager::ACCEPT_ALL);
TriggerPrompt();
- EXPECT_EQ(1, prompt_factory()->total_request_count());
EXPECT_TRUE(FeatureUsageSucceeds());
+ EXPECT_EQ(1, prompt_factory()->total_request_count());
}

Powered by Google App Engine
This is Rietveld 408576698