Lines Matching refs:calc
52 HashCalculator calc; in TEST_F() local
53 calc.Update("hi", 2); in TEST_F()
54 calc.Finalize(); in TEST_F()
55 EXPECT_EQ(kExpectedHash, calc.hash()); in TEST_F()
58 EXPECT_TRUE(raw_hash == calc.raw_hash()); in TEST_F()
62 HashCalculator calc; in TEST_F() local
63 calc.Update("h", 1); in TEST_F()
64 calc.Update("i", 1); in TEST_F()
65 calc.Finalize(); in TEST_F()
66 EXPECT_EQ(kExpectedHash, calc.hash()); in TEST_F()
69 EXPECT_TRUE(raw_hash == calc.raw_hash()); in TEST_F()
73 HashCalculator calc; in TEST_F() local
74 calc.Update("h", 1); in TEST_F()
75 string calc_context = calc.GetContext(); in TEST_F()
76 calc.Finalize(); in TEST_F()
88 HashCalculator calc; in TEST_F() local
99 calc.Update(buf, strlen(buf)); in TEST_F()
101 calc.Finalize(); in TEST_F()
109 EXPECT_EQ("NZf8k6SPBkYMvhaX8YgzuMgbkLP1XZ+neM8K5wcSsf8=", calc.hash()); in TEST_F()
121 HashCalculator calc; in TEST_F() local
122 EXPECT_EQ(2, calc.UpdateFile(data_path, kLengths[i])); in TEST_F()
123 EXPECT_TRUE(calc.Finalize()); in TEST_F()
124 EXPECT_EQ(kExpectedHash, calc.hash()); in TEST_F()
127 EXPECT_TRUE(raw_hash == calc.raw_hash()); in TEST_F()
130 HashCalculator calc; in TEST_F() local
131 EXPECT_EQ(0, calc.UpdateFile(data_path, 0)); in TEST_F()
132 EXPECT_EQ(1, calc.UpdateFile(data_path, 1)); in TEST_F()
133 EXPECT_TRUE(calc.Finalize()); in TEST_F()
135 EXPECT_EQ("qqlAJmTxpB9A67xSyZk+tmrrNmYClY/fqig7ceZNsSM=", calc.hash()); in TEST_F()
158 HashCalculator calc; in TEST_F() local
159 EXPECT_EQ(-1, calc.UpdateFile("/some/non-existent/file", -1)); in TEST_F()
165 HashCalculator calc; in TEST_F() local
168 HashCalculator calc; in TEST_F() local
169 calc.Update("h", 1); in TEST_F()