Home
last modified time | relevance | path

Searched refs:VersionPrefix (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/common/
Dutils_unittest.cc473 TEST(UtilsTest, VersionPrefix) { in TEST() argument
474 EXPECT_EQ(10575, utils::VersionPrefix("10575.39.")); in TEST()
475 EXPECT_EQ(10575, utils::VersionPrefix("10575.39")); in TEST()
476 EXPECT_EQ(10575, utils::VersionPrefix("10575.x")); in TEST()
477 EXPECT_EQ(10575, utils::VersionPrefix("10575.")); in TEST()
478 EXPECT_EQ(10575, utils::VersionPrefix("10575")); in TEST()
479 EXPECT_EQ(0, utils::VersionPrefix("")); in TEST()
480 EXPECT_EQ(-1, utils::VersionPrefix("x")); in TEST()
481 EXPECT_EQ(-1, utils::VersionPrefix("1x")); in TEST()
482 EXPECT_EQ(-1, utils::VersionPrefix("x.1")); in TEST()
Dutils.h320 int VersionPrefix(const std::string& version);
Dutils.cc1025 int VersionPrefix(const std::string& version) { in VersionPrefix() function
/system/update_engine/
Dmetrics_reporter_omaha.cc225 value = utils::VersionPrefix(target_version); in ReportUpdateCheckMetrics()
533 int value = utils::VersionPrefix(rollback_version); in ReportEnterpriseRollbackMetrics()