Searched refs:VersionPrefix (Results 1 – 4 of 4) sorted by relevance
/system/update_engine/common/ |
D | utils_unittest.cc | 473 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()
|
D | utils.h | 320 int VersionPrefix(const std::string& version);
|
D | utils.cc | 1025 int VersionPrefix(const std::string& version) { in VersionPrefix() function
|
/system/update_engine/ |
D | metrics_reporter_omaha.cc | 225 value = utils::VersionPrefix(target_version); in ReportUpdateCheckMetrics() 533 int value = utils::VersionPrefix(rollback_version); in ReportEnterpriseRollbackMetrics()
|