Lines Matching refs:calc
48 HashCalculator calc; in TEST_F() local
49 calc.Update("hi", 2); in TEST_F()
50 calc.Finalize(); in TEST_F()
53 EXPECT_EQ(raw_hash, calc.raw_hash()); in TEST_F()
57 HashCalculator calc; in TEST_F() local
58 calc.Update("h", 1); in TEST_F()
59 calc.Update("i", 1); in TEST_F()
60 calc.Finalize(); in TEST_F()
63 EXPECT_EQ(raw_hash, calc.raw_hash()); in TEST_F()
67 HashCalculator calc; in TEST_F() local
68 calc.Update("h", 1); in TEST_F()
69 string calc_context = calc.GetContext(); in TEST_F()
70 calc.Finalize(); in TEST_F()
81 HashCalculator calc; in TEST_F() local
92 calc.Update(buf, strlen(buf)); in TEST_F()
94 calc.Finalize(); in TEST_F()
103 brillo::data_encoding::Base64Encode(calc.raw_hash())); in TEST_F()
111 HashCalculator calc; in TEST_F() local
112 EXPECT_EQ(2, calc.UpdateFile(data_file.path(), length)); in TEST_F()
113 EXPECT_TRUE(calc.Finalize()); in TEST_F()
116 EXPECT_EQ(raw_hash, calc.raw_hash()); in TEST_F()
119 HashCalculator calc; in TEST_F() local
120 EXPECT_EQ(0, calc.UpdateFile(data_file.path(), 0)); in TEST_F()
121 EXPECT_EQ(1, calc.UpdateFile(data_file.path(), 1)); in TEST_F()
122 EXPECT_TRUE(calc.Finalize()); in TEST_F()
125 brillo::data_encoding::Base64Encode(calc.raw_hash())); in TEST_F()
143 HashCalculator calc; in TEST_F() local
144 EXPECT_EQ(-1, calc.UpdateFile("/some/non-existent/file", -1)); in TEST_F()
149 { HashCalculator calc; } in TEST_F() local
151 HashCalculator calc; in TEST_F() local
152 calc.Update("h", 1); in TEST_F()