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

Unified Diff: chrome/browser/chrome_elf_init_unittest_win.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: chrome/browser/chrome_elf_init_unittest_win.cc
diff --git a/chrome/browser/chrome_elf_init_unittest_win.cc b/chrome/browser/chrome_elf_init_unittest_win.cc
index 5824336f7ab9b369d5e014bc1014269cd1ec8868..dc32585fb70f6905703c8245625998425fd585e7 100644
--- a/chrome/browser/chrome_elf_init_unittest_win.cc
+++ b/chrome/browser/chrome_elf_init_unittest_win.cc
@@ -10,10 +10,10 @@
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/test_reg_util_win.h"
-#include "chrome/common/chrome_version_info.h"
#include "chrome_elf/chrome_elf_constants.h"
#include "components/variations/entropy_provider.h"
#include "components/variations/variations_associated_data.h"
+#include "components/version_info/version_info.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "version.h" // NOLINT
@@ -76,8 +76,7 @@ TEST_F(ChromeBlacklistTrialTest, DefaultRun) {
// Ensure the beacon values are now correct, indicating the
// blacklist beacon was setup.
ASSERT_EQ(blacklist::BLACKLIST_ENABLED, GetBlacklistState());
- chrome::VersionInfo version_info;
- base::string16 version(base::UTF8ToUTF16(version_info.Version()));
+ base::string16 version(base::UTF8ToUTF16(version_info::GetVersionNumber()));
ASSERT_EQ(version, GetBlacklistVersion());
}
@@ -112,8 +111,7 @@ TEST_F(ChromeBlacklistTrialTest, VerifyFirstRun) {
// Verify the state is properly set after the first run.
ASSERT_EQ(blacklist::BLACKLIST_ENABLED, GetBlacklistState());
- chrome::VersionInfo version_info;
- base::string16 version(base::UTF8ToUTF16(version_info.Version()));
+ base::string16 version(base::UTF8ToUTF16(version_info::GetVersionNumber()));
ASSERT_EQ(version, GetBlacklistVersion());
}
@@ -146,8 +144,8 @@ TEST_F(ChromeBlacklistTrialTest, VersionChanged) {
// The beacon should now be marked as enabled for the current version.
ASSERT_EQ(blacklist::BLACKLIST_ENABLED, GetBlacklistState());
- chrome::VersionInfo version_info;
- base::string16 expected_version(base::UTF8ToUTF16(version_info.Version()));
+ base::string16 expected_version(
+ base::UTF8ToUTF16(version_info::GetVersionNumber()));
ASSERT_EQ(expected_version, GetBlacklistVersion());
// The counter should be reset.
« no previous file with comments | « chrome/browser/chrome_content_browser_client_unittest.cc ('k') | chrome/browser/chromeos/app_mode/kiosk_external_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698