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

Unified Diff: chrome/installer/util/package_properties_unittest.cc

Issue 6090006: Regkey functions return error code instead of bool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/util/package_properties_unittest.cc
===================================================================
--- chrome/installer/util/package_properties_unittest.cc (revision 71561)
+++ chrome/installer/util/package_properties_unittest.cc (working copy)
@@ -32,8 +32,8 @@
if (!props[i]->ReceivesUpdates()) {
TempRegKeyOverride override(HKEY_CURRENT_USER, L"props");
RegKey key;
- EXPECT_TRUE(key.Create(HKEY_CURRENT_USER, state_key.c_str(),
- KEY_ALL_ACCESS));
+ EXPECT_EQ(ERROR_SUCCESS,
+ key.Create(HKEY_CURRENT_USER, state_key.c_str(), KEY_ALL_ACCESS));
}
TempRegKeyOverride::DeleteAllTempKeys();
}

Powered by Google App Engine
This is Rietveld 408576698