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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 591463003: Remote Assistance on Chrome OS Part III - NativeMessageHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_messaging
Patch Set: Fix compile error Created 6 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/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index c7502c792a6b4c5a49d57033e257c413f390c511..be13a87057fa529e347cf98c76158341e4e9e6b5 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -34,7 +34,7 @@
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/devtools/devtools_window_testing.h"
#include "chrome/browser/download/download_prefs.h"
-#include "chrome/browser/extensions/api/messaging/native_message_process_host.h"
+#include "chrome/browser/extensions/api/messaging/message_service.h"
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/unpacked_installer.h"
@@ -3171,9 +3171,9 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, NativeMessagingBlacklistSelective) {
UpdateProviderPolicy(policies);
PrefService* prefs = browser()->profile()->GetPrefs();
- EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed(
+ EXPECT_FALSE(extensions::MessageService::IsNativeMessagingHostAllowed(
prefs, "host.name"));
- EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed(
+ EXPECT_TRUE(extensions::MessageService::IsNativeMessagingHostAllowed(
prefs, "other.host.name"));
}
@@ -3186,9 +3186,9 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, NativeMessagingBlacklistWildcard) {
UpdateProviderPolicy(policies);
PrefService* prefs = browser()->profile()->GetPrefs();
- EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed(
+ EXPECT_FALSE(extensions::MessageService::IsNativeMessagingHostAllowed(
prefs, "host.name"));
- EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed(
+ EXPECT_FALSE(extensions::MessageService::IsNativeMessagingHostAllowed(
prefs, "other.host.name"));
}
@@ -3205,9 +3205,9 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, NativeMessagingWhitelist) {
UpdateProviderPolicy(policies);
PrefService* prefs = browser()->profile()->GetPrefs();
- EXPECT_TRUE(extensions::NativeMessageProcessHost::IsHostAllowed(
+ EXPECT_TRUE(extensions::MessageService::IsNativeMessagingHostAllowed(
prefs, "host.name"));
- EXPECT_FALSE(extensions::NativeMessageProcessHost::IsHostAllowed(
+ EXPECT_FALSE(extensions::MessageService::IsNativeMessagingHostAllowed(
prefs, "other.host.name"));
}

Powered by Google App Engine
This is Rietveld 408576698