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

Unified Diff: components/user_prefs/tracked/registry_hash_store_contents_win_unittest.cc

Issue 2692843002: Fail tests fast if overriding the Windows registry fails. (Closed)
Patch Set: sync to position 450085 Created 3 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
« no previous file with comments | « components/browser_watcher/watcher_metrics_provider_win_unittest.cc ('k') | rlz/test/rlz_test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_prefs/tracked/registry_hash_store_contents_win_unittest.cc
diff --git a/components/user_prefs/tracked/registry_hash_store_contents_win_unittest.cc b/components/user_prefs/tracked/registry_hash_store_contents_win_unittest.cc
index a34d7ade788d1b08f4d75ee7e03de0db79e4d6a5..8b53b920da32284e0e5583769987a592912ea72f 100644
--- a/components/user_prefs/tracked/registry_hash_store_contents_win_unittest.cc
+++ b/components/user_prefs/tracked/registry_hash_store_contents_win_unittest.cc
@@ -30,7 +30,8 @@ class RegistryHashStoreContentsWinTest : public testing::Test {
RegistryHashStoreContentsWinTest() {}
void SetUp() override {
- registry_override_manager_.OverrideRegistry(HKEY_CURRENT_USER);
+ ASSERT_NO_FATAL_FAILURE(
+ registry_override_manager_.OverrideRegistry(HKEY_CURRENT_USER));
contents.reset(new RegistryHashStoreContentsWin(kRegistryPath, kStoreKey));
}
« no previous file with comments | « components/browser_watcher/watcher_metrics_provider_win_unittest.cc ('k') | rlz/test/rlz_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698