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

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

Issue 5729004: Merge the installer, installer_util and setup_util namespaces into a single i... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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/google_update_settings_unittest.cc
===================================================================
--- chrome/installer/util/google_update_settings_unittest.cc (revision 68996)
+++ chrome/installer/util/google_update_settings_unittest.cc (working copy)
@@ -213,11 +213,11 @@
}
TEST_F(GoogleUpdateSettingsTest, UpdateGoogleUpdateApKey) {
- installer_util::InstallStatus s = installer_util::FIRST_INSTALL_SUCCESS;
- installer_util::InstallStatus f = installer_util::INSTALL_FAILED;
+ installer::InstallStatus s = installer::FIRST_INSTALL_SUCCESS;
+ installer::InstallStatus f = installer::INSTALL_FAILED;
// Incremental Installer that worked.
- installer_util::ChannelInfo v;
+ installer::ChannelInfo v;
v.set_value(L"");
EXPECT_FALSE(GoogleUpdateSettings::UpdateGoogleUpdateApKey(true, s, &v));
EXPECT_EQ(v.value(), L"");
@@ -324,7 +324,7 @@
ASSERT_TRUE(CreateApKey(work_item_list.get(), L""))
<< "Failed to create ap key.";
GoogleUpdateSettings::UpdateDiffInstallStatus(false, true,
- installer_util::INSTALL_FAILED,
+ installer::INSTALL_FAILED,
kTestProductGuid);
EXPECT_STREQ(ReadApKeyValue().c_str(), L"-full");
work_item_list->Rollback();
@@ -334,7 +334,7 @@
ASSERT_TRUE(CreateApKey(work_item_list.get(), L""))
<< "Failed to create ap key.";
GoogleUpdateSettings::UpdateDiffInstallStatus(false, true,
- installer_util::FIRST_INSTALL_SUCCESS,
+ installer::FIRST_INSTALL_SUCCESS,
kTestProductGuid);
EXPECT_STREQ(ReadApKeyValue().c_str(), L"");
work_item_list->Rollback();
@@ -344,7 +344,7 @@
ASSERT_TRUE(CreateApKey(work_item_list.get(), L"-full"))
<< "Failed to create ap key.";
GoogleUpdateSettings::UpdateDiffInstallStatus(false, false,
- installer_util::INSTALL_FAILED,
+ installer::INSTALL_FAILED,
kTestProductGuid);
EXPECT_STREQ(ReadApKeyValue().c_str(), L"");
work_item_list->Rollback();
@@ -354,7 +354,7 @@
ASSERT_TRUE(CreateApKey(work_item_list.get(), L"-full"))
<< "Failed to create ap key.";
GoogleUpdateSettings::UpdateDiffInstallStatus(false, false,
- installer_util::FIRST_INSTALL_SUCCESS,
+ installer::FIRST_INSTALL_SUCCESS,
kTestProductGuid);
EXPECT_STREQ(ReadApKeyValue().c_str(), L"");
work_item_list->Rollback();
@@ -374,12 +374,12 @@
}
// try differential installer
GoogleUpdateSettings::UpdateDiffInstallStatus(false, true,
- installer_util::INSTALL_FAILED,
+ installer::INSTALL_FAILED,
kTestProductGuid);
EXPECT_STREQ(ReadApKeyValue().c_str(), L"-full");
// try full installer now
GoogleUpdateSettings::UpdateDiffInstallStatus(false, false,
- installer_util::INSTALL_FAILED,
+ installer::INSTALL_FAILED,
kTestProductGuid);
EXPECT_STREQ(ReadApKeyValue().c_str(), L"");
// Now cleanup to leave the system in unchanged state.

Powered by Google App Engine
This is Rietveld 408576698