Chromium Code Reviews

Unified Diff: chrome/browser/apps/ephemeral_app_launcher_browsertest.cc

Issue 1081403002: Refactor safe-browsing build-config definitions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix collision Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/ephemeral_app_launcher_browsertest.cc
diff --git a/chrome/browser/apps/ephemeral_app_launcher_browsertest.cc b/chrome/browser/apps/ephemeral_app_launcher_browsertest.cc
index 565410afc78ca0aef0400666c6715114a70bca8f..9358c438f21c03fc3d8386c7ce6ae3ab70ce7c8c 100644
--- a/chrome/browser/apps/ephemeral_app_launcher_browsertest.cc
+++ b/chrome/browser/apps/ephemeral_app_launcher_browsertest.cc
@@ -450,6 +450,8 @@ IN_PROC_BROWSER_TEST_F(EphemeralAppLauncherTest, BlockedByPolicy) {
EXPECT_FALSE(GetInstalledExtension(kDefaultAppId));
}
+// The blacklist relies on safe-browsing database infrastructure.
+#if defined(SAFE_BROWSING_DB_LOCAL)
// Verifies that an app blacklisted for malware is not installed ephemerally.
IN_PROC_BROWSER_TEST_F(EphemeralAppLauncherTest, BlacklistedForMalware) {
// Mock a BLACKLISTED_MALWARE return status.
@@ -474,6 +476,7 @@ IN_PROC_BROWSER_TEST_F(EphemeralAppLauncherTest, BlacklistStateUnknown) {
RunLaunchTest(kDefaultAppId, webstore_install::SUCCESS, true);
ValidateAppInstalledEphemerally(kDefaultAppId);
}
+#endif
// Verifies that an app with unsupported requirements is not installed
// ephemerally.
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine