Index: components/content_settings/core/browser/content_settings_registry_unittest.cc |
diff --git a/components/content_settings/core/browser/content_settings_registry_unittest.cc b/components/content_settings/core/browser/content_settings_registry_unittest.cc |
index 4184b8c99a29ef3a4b54661777100a8f865170a0..65b0f706229fe1f84a8d190f059fb7378ede566c 100644 |
--- a/components/content_settings/core/browser/content_settings_registry_unittest.cc |
+++ b/components/content_settings/core/browser/content_settings_registry_unittest.cc |
@@ -4,7 +4,7 @@ |
#include <string> |
#include <vector> |
- |
+#include <iostream> |
#include "base/logging.h" |
#include "base/values.h" |
#include "components/content_settings/core/browser/content_settings_info.h" |
@@ -76,6 +76,7 @@ TEST_F(ContentSettingsRegistryTest, Iteration) { |
bool cookies_found = false; |
for (const ContentSettingsInfo* info : *registry()) { |
ContentSettingsType type = info->website_settings_info()->type(); |
+ std::cout << "##########lshang#########" << type << std::endl; |
EXPECT_EQ(registry()->Get(type), info); |
if (type == CONTENT_SETTINGS_TYPE_PLUGINS) { |
EXPECT_FALSE(plugins_found); |
@@ -86,7 +87,12 @@ TEST_F(ContentSettingsRegistryTest, Iteration) { |
} |
} |
+#if defined(OS_ANDROID) || defined(OS_IOS) |
+ EXPECT_FALSE(plugins_found); |
+#else |
EXPECT_TRUE(plugins_found); |
+#endif |
+ |
EXPECT_TRUE(cookies_found); |
} |