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

Unified Diff: chrome/installer/gcapi/gcapi_last_run_test.cc

Issue 2692843002: Fail tests fast if overriding the Windows registry fails. (Closed)
Patch Set: 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
Index: chrome/installer/gcapi/gcapi_last_run_test.cc
diff --git a/chrome/installer/gcapi/gcapi_last_run_test.cc b/chrome/installer/gcapi/gcapi_last_run_test.cc
index 4652f3616e6ea3e322dc99944e8b5aba99746608..309a8c056d7d71ba5b4ad33841e1e87e75cdbda7 100644
--- a/chrome/installer/gcapi/gcapi_last_run_test.cc
+++ b/chrome/installer/gcapi/gcapi_last_run_test.cc
@@ -26,7 +26,8 @@ class GCAPILastRunTest : public ::testing::Test {
protected:
void SetUp() override {
// Override keys - this is undone during destruction.
- override_manager_.OverrideRegistry(HKEY_CURRENT_USER);
+ ASSERT_NO_FATAL_FAILURE(
+ override_manager_.OverrideRegistry(HKEY_CURRENT_USER));
// Create the client state key in the right places.
std::wstring reg_path(google_update::kRegPathClientState);

Powered by Google App Engine
This is Rietveld 408576698