Searched refs:StashInfo (Results 1 – 3 of 3) sorted by relevance
/bootable/recovery/updater/include/private/ |
D | commands.h | 67 class StashInfo { 69 StashInfo() = default; 71 StashInfo(std::string id, RangeSet ranges) : id_(std::move(id)), ranges_(std::move(ranges)) {} in StashInfo() function 85 bool operator==(const StashInfo& other) const { 90 friend std::ostream& operator<<(std::ostream& os, const StashInfo& stash); 98 std::ostream& operator<<(std::ostream& os, const StashInfo& stash); 106 SourceInfo(std::string hash, RangeSet ranges, RangeSet location, std::vector<StashInfo> stashes) in SourceInfo() 159 std::vector<StashInfo> stashes_; 306 SourceInfo source, StashInfo stash) in Command() 349 const StashInfo& stash() const { in stash() [all …]
|
/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 85 StashInfo("6ebcf8cf1f6be0bc49e7d4a864214251925d1d15", RangeSet({ { 0, 2 } })), in TEST() 113 StashInfo("9eedf00d11061549e32503cadf054ec6fbfa7a23", RangeSet({ { 94, 95 } })), in TEST() 177 ASSERT_EQ(StashInfo(), command.stash()); in TEST() 209 ASSERT_EQ(StashInfo(), command.stash()); in TEST() 225 ASSERT_EQ(StashInfo(), command.stash()); in TEST() 241 ASSERT_EQ(StashInfo("hash1", RangeSet()), command.stash()); in TEST() 265 ASSERT_EQ(StashInfo(), command.stash()); in TEST() 288 ASSERT_EQ(StashInfo(), command.stash()); in TEST() 304 ASSERT_EQ(StashInfo(), command.stash()); in TEST() 320 ASSERT_EQ(StashInfo("hash1", RangeSet({ { 5, 10 } })), command.stash()); in TEST() [all …]
|
/bootable/recovery/updater/ |
D | commands.cpp | 150 std::vector<StashInfo> stashes; in ParseTargetInfoAndSourceInfo() 191 StashInfo stash_info; in Parse() 219 stash_info = StashInfo(id, src_ranges); in Parse() 227 stash_info = StashInfo(tokens[pos++], {}); in Parse() 349 for (const StashInfo& stash : stashes_) { in ReadAll() 385 std::ostream& operator<<(std::ostream& os, const StashInfo& stash) { in operator <<()
|