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

Unified Diff: chrome/common/service_process_util_unittest.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
« no previous file with comments | « chrome/common/service_process_util_mac.mm ('k') | chrome/common/sync_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util_unittest.cc
diff --git a/chrome/common/service_process_util_unittest.cc b/chrome/common/service_process_util_unittest.cc
index 11c9b1ac4b68517e7d59a21faeb5e9b009e463e3..8844f91305e794b793448122c816c4a24050053a 100644
--- a/chrome/common/service_process_util_unittest.cc
+++ b/chrome/common/service_process_util_unittest.cc
@@ -23,7 +23,7 @@
#include "base/test/test_timeouts.h"
#include "base/threading/thread.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/chrome_version_info.h"
+#include "components/version_info/version_info.h"
#include "testing/multiprocess_func_list.h"
#if defined(OS_WIN)
@@ -62,10 +62,10 @@ void ShutdownTask(base::MessageLoop* loop) {
TEST(ServiceProcessUtilTest, ScopedVersionedName) {
std::string test_str = "test";
std::string scoped_name = GetServiceProcessScopedVersionedName(test_str);
- chrome::VersionInfo version_info;
EXPECT_TRUE(base::EndsWith(scoped_name, test_str,
base::CompareCase::SENSITIVE));
- EXPECT_NE(std::string::npos, scoped_name.find(version_info.Version()));
+ EXPECT_NE(std::string::npos,
+ scoped_name.find(version_info::GetVersionNumber()));
}
class ServiceProcessStateTest : public base::MultiProcessTest {
« no previous file with comments | « chrome/common/service_process_util_mac.mm ('k') | chrome/common/sync_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698