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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc

Issue 950053002: Cache the Windows Parental Controls Platform Answer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Isolation Created 5 years, 10 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/renderer_context_menu/render_view_context_menu_unittest.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc b/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc
index 011ee54b529d90ba86d3349472a48f226bf48767..b9ea23988a4372f1c7efe2f9c50c561658ce0c54 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc
@@ -242,6 +242,16 @@ TEST_F(RenderViewContextMenuTest, TargetIgnoredForSelectionOnImage) {
class RenderViewContextMenuPrefsTest : public ChromeRenderViewHostTestHarness {
public:
+ static void SetUpTestCase() {
+ // Checking for incognito availability requires platform parental controls
+ // initialization.
+ IncognitoModePrefs::InitializePlatformParentalControls();
+ }
+
+ static void TearDownTestCase() {
+ IncognitoModePrefs::UninitializePlatformParentalControls();
+ }
+
void SetUp() override {
ChromeRenderViewHostTestHarness::SetUp();
registry_.reset(new ProtocolHandlerRegistry(profile(), NULL));

Powered by Google App Engine
This is Rietveld 408576698