Searched refs:boot_id (Results 1 – 7 of 7) sorted by relevance
128 std::string boot_id; in Initialize() local129 if (utils::GetBootId(&boot_id)) { in Initialize()132 prev_boot_id != boot_id); in Initialize()133 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
83 std::string boot_id; in TEST_F() local84 utils::GetBootId(&boot_id); in TEST_F()88 EXPECT_EQ(boot_id, prefs_boot_id); in TEST_F()
660 string boot_id; in WriteUpdateCompletedMarker() local661 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in WriteUpdateCompletedMarker()662 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()670 string boot_id; in UpdateCompletedOnThisBoot() local671 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in UpdateCompletedOnThisBoot()677 update_completed_on_boot_id == boot_id); in UpdateCompletedOnThisBoot()
895 string boot_id; in WriteUpdateCompletedMarker() local896 if (!utils::GetBootId(&boot_id)) in WriteUpdateCompletedMarker()898 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()1607 string boot_id; in GetBootTimeAtUpdate() local1608 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in GetBootTimeAtUpdate()1614 update_completed_on_boot_id != boot_id) in GetBootTimeAtUpdate()
356 string boot_id; in TEST_F() local357 EXPECT_TRUE(utils::GetBootId(&boot_id)); in TEST_F()358 fake_prefs.SetString(kPrefsUpdateCompletedOnBootId, boot_id); in TEST_F()
1018 bool GetBootId(string* boot_id) { in GetBootId() argument1020 base::ReadFileToString(base::FilePath(kBootIdPath), boot_id)); in GetBootId()1021 base::TrimWhitespaceASCII(*boot_id, base::TRIM_TRAILING, boot_id); in GetBootId()
305 bool GetBootId(std::string* boot_id);