| From bce0b43fea3a9a4fe2be2d7e0b8f09bb2ec8b11e Mon Sep 17 00:00:00 2001 |
| From: Sejal Sharma <sejalsharma@google.com> |
| Date: Thu, 27 Oct 2022 16:49:07 +0000 |
| Subject: [PATCH] Add version to PrintTable and GetTable |
| |
| Added argument to PrintTable and GetTable to allow for ebuild unit tests |
| to run. |
| |
| Change-Id: Id7311439df559698f6713ae98041ad42b35924cc |
| --- |
| verity/file_hasher_test.cc | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/verity/file_hasher_test.cc b/verity/file_hasher_test.cc |
| index ec9e6b364e..dc6050e13e 100644 |
| --- a/verity/file_hasher_test.cc |
| +++ b/verity/file_hasher_test.cc |
| @@ -55,8 +55,8 @@ TEST_F(FileHasherTest, EndToEnd) { |
| EXPECT_TRUE(hasher.Hash()); |
| EXPECT_TRUE(hasher.Store()); |
| |
| - hasher.PrintTable(true); |
| - EXPECT_EQ(hasher.GetTable(true), |
| + hasher.PrintTable(true, 0); |
| + EXPECT_EQ(hasher.GetTable(true, 0), |
| "0 16 verity payload=ROOT_DEV hashtree=HASH_DEV hashstart=16 " |
| "alg=sha256 root_hexdigest=21f0268f4a293d8110074c678a651c638d" |
| "56a610dd2662975a35d451d3258018 salt=abcdef0123456789abcdef01" |
| -- |
| 2.38.1.273.g43a17bfeac-goog |
| |