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

Unified Diff: chrome/browser/ui/webui/options/pepper_flash_content_settings_utils_unittest.cc

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS tests Created 6 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/ui/webui/options/pepper_flash_content_settings_utils_unittest.cc
diff --git a/chrome/browser/ui/webui/options/pepper_flash_content_settings_utils_unittest.cc b/chrome/browser/ui/webui/options/pepper_flash_content_settings_utils_unittest.cc
index ce9295c3c68b57997bd87cc2765a44072eb56a03..e64a87e4932425286facf78839c3346f68b2f34b 100644
--- a/chrome/browser/ui/webui/options/pepper_flash_content_settings_utils_unittest.cc
+++ b/chrome/browser/ui/webui/options/pepper_flash_content_settings_utils_unittest.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/webui/options/pepper_flash_content_settings_utils.h"
#include "base/basictypes.h"
+#include "chrome/common/content_settings_component.h"
#include "testing/gtest/include/gtest/gtest.h"
using options::MediaException;
@@ -22,6 +23,7 @@ MediaExceptions ConvertAndSort(const MediaException* items, size_t count) {
} // namespace
TEST(PepperFlashContentSettingsUtilsTest, SortMediaExceptions) {
+ InitContentSettingsComponent();
MediaException entry_1(ContentSettingsPattern::FromString("www.google.com"),
CONTENT_SETTING_ALLOW, CONTENT_SETTING_ASK);
MediaException entry_2(ContentSettingsPattern::FromString("www.youtube.com"),
@@ -62,6 +64,7 @@ TEST(PepperFlashContentSettingsUtilsTest, SortMediaExceptions) {
}
TEST(PepperFlashContentSettingsUtilsTest, AreMediaExceptionsEqual) {
+ InitContentSettingsComponent();
{
// Empty lists are equal.
// Default settings are not compared directly, so it is possible to return

Powered by Google App Engine
This is Rietveld 408576698