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

Unified Diff: chrome_frame/test/ready_mode_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_frame/test/ready_mode_unittest.cc
===================================================================
--- chrome_frame/test/ready_mode_unittest.cc (revision 70917)
+++ chrome_frame/test/ready_mode_unittest.cc (working copy)
@@ -330,7 +330,8 @@
virtual void SetUp() {
base::win::RegKey key;
- ASSERT_TRUE(key.Create(HKEY_CURRENT_USER, kRootKey, KEY_ALL_ACCESS));
+ ASSERT_EQ(ERROR_SUCCESS, key.Create(HKEY_CURRENT_USER, kRootKey,
+ KEY_ALL_ACCESS));
observer_ = new MockRegistryReadyModeStateObserver();
installation_state_ = new MockInstallationState();
@@ -350,8 +351,8 @@
virtual void TearDown() {
base::win::RegKey key;
- EXPECT_TRUE(key.Open(HKEY_CURRENT_USER, L"", KEY_ALL_ACCESS));
- EXPECT_TRUE(key.DeleteKey(kRootKey));
+ EXPECT_EQ(ERROR_SUCCESS, key.Open(HKEY_CURRENT_USER, L"", KEY_ALL_ACCESS));
+ EXPECT_EQ(ERROR_SUCCESS, key.DeleteKey(kRootKey));
}
protected:

Powered by Google App Engine
This is Rietveld 408576698