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

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

Issue 1301883002: Revert of base: Remove using:: declaration from version.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/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 01328b78bee5398371cb0744c580d373cb2feb96..8ff63c36d62310d0c4d2b84ef1a85119ff00e40a 100644
--- a/chrome/installer/setup/install_worker_unittest.cc
+++ b/chrome/installer/setup/install_worker_unittest.cc
@@ -119,7 +119,7 @@
class MockProductState : public ProductState {
public:
// Takes ownership of |version|.
- void set_version(base::Version* version) { version_.reset(version); }
+ void set_version(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) {
@@ -186,8 +186,8 @@
class InstallWorkerTest : public testing::Test {
public:
void SetUp() override {
- current_version_.reset(new base::Version("1.0.0.0"));
- new_version_.reset(new base::Version("42.0.0.0"));
+ current_version_.reset(new Version("1.0.0.0"));
+ new_version_.reset(new 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
@@ -213,7 +213,7 @@
if (installation_state->GetProductState(
system_level, BrowserDistribution::CHROME_BINARIES) == NULL) {
MockProductState product_state;
- product_state.set_version(new base::Version(*current_version_));
+ product_state.set_version(new Version(*current_version_));
product_state.set_brand(L"TEST");
product_state.set_multi_install(true);
BrowserDistribution* dist =
@@ -242,7 +242,7 @@
if (multi_install)
MaybeAddBinariesToInstallationState(system_level, installation_state);
MockProductState product_state;
- product_state.set_version(new base::Version(*current_version_));
+ product_state.set_version(new Version(*current_version_));
product_state.set_multi_install(multi_install);
product_state.set_brand(L"TEST");
product_state.set_eula_accepted(1);
@@ -275,7 +275,7 @@
if (multi_install)
MaybeAddBinariesToInstallationState(system_level, installation_state);
MockProductState product_state;
- product_state.set_version(new base::Version(*current_version_));
+ product_state.set_version(new Version(*current_version_));
product_state.set_multi_install(multi_install);
BrowserDistribution* dist =
BrowserDistribution::GetSpecificDistribution(
@@ -436,8 +436,8 @@
}
protected:
- scoped_ptr<base::Version> current_version_;
- scoped_ptr<base::Version> new_version_;
+ scoped_ptr<Version> current_version_;
+ scoped_ptr<Version> new_version_;
base::FilePath archive_path_;
base::FilePath installation_path_;
base::FilePath setup_path_;
@@ -569,7 +569,7 @@
BuildChromeInstallationState(system_level, false));
MockProductState cf_state;
- cf_state.set_version(new base::Version(*current_version_));
+ cf_state.set_version(new Version(*current_version_));
cf_state.set_multi_install(false);
// Per-machine single-install Chrome Frame is installed.
@@ -641,7 +641,7 @@
BuildChromeInstallationState(system_level, multi_install));
MockProductState chrome_state;
- chrome_state.set_version(new base::Version(*current_version_));
+ chrome_state.set_version(new 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