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

Unified Diff: chrome/browser/configuration_policy_provider_win_unittest.cc

Issue 2858060: Changing policy while Chrome is running should refresh preferences without relaunching (Closed)
Patch Set: changed name of mock Created 10 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
« no previous file with comments | « chrome/browser/configuration_policy_provider_win.cc ('k') | chrome/browser/pref_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/configuration_policy_provider_win_unittest.cc
diff --git a/chrome/browser/configuration_policy_provider_win_unittest.cc b/chrome/browser/configuration_policy_provider_win_unittest.cc
index 4d39ff62ae74afe913435553e434598cb5bf0478..ed66b4f88000b064e9cc7a249c509779ec04ae56 100644
--- a/chrome/browser/configuration_policy_provider_win_unittest.cc
+++ b/chrome/browser/configuration_policy_provider_win_unittest.cc
@@ -113,6 +113,12 @@ class ConfigurationPolicyProviderWinTest : public testing::Test {
void TestBooleanPolicy(ConfigurationPolicyStore::PolicyType type);
private:
+ // A message loop must be declared and instantiated for these tests,
+ // because Windows policy provider create WaitableEvents and
+ // ObjectWatchers that require the tests to have a MessageLoop associated
+ // with the thread executing the tests.
+ MessageLoop loop_;
+
// Keys are created for the lifetime of a test to contain
// the sandboxed HKCU and HKLM hives, respectively.
RegKey temp_hkcu_hive_key_;
« no previous file with comments | « chrome/browser/configuration_policy_provider_win.cc ('k') | chrome/browser/pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698