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

Unified Diff: chrome/installer/setup/install_worker_unittest.cc

Issue 100543005: Update all users of base::Version to explicitly specify the namespace, and clean up the header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: someday it will work Created 7 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
« no previous file with comments | « chrome/installer/setup/install_worker.cc ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/install_worker_unittest.cc
diff --git a/chrome/installer/setup/install_worker_unittest.cc b/chrome/installer/setup/install_worker_unittest.cc
index 9d2a2663b5a08cdf037f1867d91272effd325945..b1a57db0da10c8333b01fc452afb486be990e84f 100644
--- a/chrome/installer/setup/install_worker_unittest.cc
+++ b/chrome/installer/setup/install_worker_unittest.cc
@@ -100,7 +100,7 @@ class MockWorkItemList : public WorkItemList {
class MockProductState : public ProductState {
public:
// Takes ownership of |version|.
- void set_version(Version* version) { version_.reset(version); }
+ void set_version(base::Version* version) { version_.reset(version); }
void set_multi_install(bool multi) { multi_install_ = multi; }
void set_brand(const std::wstring& brand) { brand_ = brand; }
void set_eula_accepted(DWORD eula_accepted) {
@@ -167,8 +167,8 @@ class MockInstallerState : public InstallerState {
class InstallWorkerTest : public testing::Test {
public:
virtual void SetUp() {
- current_version_.reset(new Version("1.0.0.0"));
- new_version_.reset(new Version("42.0.0.0"));
+ current_version_.reset(new base::Version("1.0.0.0"));
+ new_version_.reset(new base::Version("42.0.0.0"));
// Don't bother ensuring that these paths exist. Since we're just
// building the work item lists and not running them, they shouldn't
@@ -195,7 +195,7 @@ class InstallWorkerTest : public testing::Test {
if (installation_state->GetProductState(
system_level, BrowserDistribution::CHROME_BINARIES) == NULL) {
MockProductState product_state;
- product_state.set_version(new Version(*current_version_));
+ product_state.set_version(new base::Version(*current_version_));
product_state.set_brand(L"TEST");
product_state.set_multi_install(true);
BrowserDistribution* dist =
@@ -224,7 +224,7 @@ class InstallWorkerTest : public testing::Test {
if (multi_install)
MaybeAddBinariesToInstallationState(system_level, installation_state);
MockProductState product_state;
- product_state.set_version(new Version(*current_version_));
+ product_state.set_version(new base::Version(*current_version_));
product_state.set_multi_install(multi_install);
product_state.set_brand(L"TEST");
product_state.set_eula_accepted(1);
@@ -257,7 +257,7 @@ class InstallWorkerTest : public testing::Test {
if (multi_install)
MaybeAddBinariesToInstallationState(system_level, installation_state);
MockProductState product_state;
- product_state.set_version(new Version(*current_version_));
+ product_state.set_version(new base::Version(*current_version_));
product_state.set_multi_install(multi_install);
BrowserDistribution* dist =
BrowserDistribution::GetSpecificDistribution(
@@ -418,8 +418,8 @@ class InstallWorkerTest : public testing::Test {
}
protected:
- scoped_ptr<Version> current_version_;
- scoped_ptr<Version> new_version_;
+ scoped_ptr<base::Version> current_version_;
+ scoped_ptr<base::Version> new_version_;
base::FilePath archive_path_;
base::FilePath installation_path_;
base::FilePath setup_path_;
@@ -542,7 +542,7 @@ TEST_F(InstallWorkerTest, GoogleUpdateWorkItemsTest) {
BuildChromeInstallationState(system_level, false));
MockProductState cf_state;
- cf_state.set_version(new Version(*current_version_));
+ cf_state.set_version(new base::Version(*current_version_));
cf_state.set_multi_install(false);
installation_state->SetProductState(system_level,
@@ -615,7 +615,7 @@ TEST_F(InstallWorkerTest, AddUsageStatsWorkItems) {
BuildChromeInstallationState(system_level, multi_install));
MockProductState chrome_state;
- chrome_state.set_version(new Version(*current_version_));
+ chrome_state.set_version(new base::Version(*current_version_));
chrome_state.set_multi_install(false);
chrome_state.set_usagestats(1);
« no previous file with comments | « chrome/installer/setup/install_worker.cc ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698