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

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

Issue 7669061: Tommi: I need an owner review for the chrome frame changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixing license issue from presubmit check Created 9 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/installer/util/installer_state_unittest.cc ('k') | chrome/installer/util/product_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/product_state_unittest.cc
===================================================================
--- chrome/installer/util/product_state_unittest.cc (revision 98031)
+++ chrome/installer/util/product_state_unittest.cc (working copy)
@@ -5,6 +5,7 @@
#include <windows.h>
#include "base/utf_string_conversions.h"
+#include "base/test/test_reg_util_win.h"
#include "base/version.h"
#include "base/win/registry.h"
#include "chrome/installer/util/browser_distribution.h"
@@ -16,6 +17,7 @@
using base::win::RegKey;
using installer::ProductState;
+using registry_util::RegistryOverrideManager;
class ProductStateTest : public testing::Test {
protected:
@@ -48,7 +50,7 @@
BrowserDistribution::CHROME_BROWSER);
// And we'll play in HKCU here:
- temp_key_path_.assign(TempRegKeyOverride::kTempTestKeyPath)
+ temp_key_path_.assign(RegistryOverrideManager::kTempTestKeyPath)
.append(1, L'\\')
.append(L"ProductStateTest");
}
@@ -68,7 +70,7 @@
system_install_ = true;
overridden_ = (system_install_ ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER);
- // Override for test purposes. We don't use TempRegKeyOverride
+ // Override for test purposes. We don't use ScopedRegistryKeyOverride
// directly because it doesn't suit itself to our use here.
RegKey temp_key;
EXPECT_EQ(ERROR_SUCCESS,
@@ -94,7 +96,7 @@
system_install_ = false;
// Shotgun approach to clearing out data we may have written.
- TempRegKeyOverride::DeleteAllTempKeys();
+ RegistryOverrideManager::DeleteAllTempKeys();
testing::Test::TearDown();
}
« no previous file with comments | « chrome/installer/util/installer_state_unittest.cc ('k') | chrome/installer/util/product_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698