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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_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/ui/views/bookmarks/bookmark_context_menu_unittest.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc b/chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc
index a65489f00a3aec2abaf87ca5ef40b90a00459648..72f6492b1fe6fa11499c4cfb22e7c24e31f5a390 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/chrome_bookmark_client.h"
#include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h"
+#include "chrome/browser/prefs/incognito_mode_prefs.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/bookmarks/bookmark_utils.h"
#include "chrome/common/pref_names.h"
@@ -65,6 +66,16 @@ class BookmarkContextMenuTest : public testing::Test {
model_(NULL) {
}
+ static void SetUpTestCase() {
+ // Checking for incognito availability requires platform parental controls
+ // initialization.
+ IncognitoModePrefs::InitializePlatformParentalControls();
+ }
+
+ static void TearDownTestCase() {
+ IncognitoModePrefs::UninitializePlatformParentalControls();
+ }
+
void SetUp() override {
event_source_ = ui::PlatformEventSource::CreateDefault();
profile_.reset(new TestingProfile());

Powered by Google App Engine
This is Rietveld 408576698