Searched refs:VersionPrefix (Results 1 – 3 of 3) sorted by relevance
/system/update_engine/common/ |
D | utils_unittest.cc | 421 TEST(UtilsTest, VersionPrefix) { in TEST() argument 422 EXPECT_EQ(10575, utils::VersionPrefix("10575.39.")); in TEST() 423 EXPECT_EQ(10575, utils::VersionPrefix("10575.39")); in TEST() 424 EXPECT_EQ(10575, utils::VersionPrefix("10575.x")); in TEST() 425 EXPECT_EQ(10575, utils::VersionPrefix("10575.")); in TEST() 426 EXPECT_EQ(10575, utils::VersionPrefix("10575")); in TEST() 427 EXPECT_EQ(0, utils::VersionPrefix("")); in TEST() 428 EXPECT_EQ(-1, utils::VersionPrefix("x")); in TEST() 429 EXPECT_EQ(-1, utils::VersionPrefix("1x")); in TEST() 430 EXPECT_EQ(-1, utils::VersionPrefix("x.1")); in TEST()
|
D | utils.h | 394 int VersionPrefix(const std::string& version);
|
D | utils.cc | 1049 int VersionPrefix(const std::string& version) { in VersionPrefix() function
|