• Home
  • Raw
  • Download

Lines Matching refs:expected

26 static ::testing::AssertionResult AssertFileEntryContentsEq(const std::string& expected,
51 const char* expected = ""; in TEST_F() local
66 EXPECT_EQ(strlen(expected), data.compressed_length); in TEST_F()
67 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
68 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); in TEST_F()
76 const char* expected = ""; in TEST_F() local
91 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
92 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); in TEST_F()
100 const char* expected = "hello"; in TEST_F() local
117 EXPECT_EQ(strlen(expected), data.compressed_length); in TEST_F()
118 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
119 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); in TEST_F()
405 const char* expected = "hello"; in TEST_F() local
410 ASSERT_EQ(0, writer.WriteBytes(expected, strlen(expected))); in TEST_F()
421 EXPECT_EQ(strlen(expected), data.compressed_length); in TEST_F()
422 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
423 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); in TEST_F()
455 static ::testing::AssertionResult AssertFileEntryContentsEq(const std::string& expected, in AssertFileEntryContentsEq() argument
458 if (expected.size() != zip_entry->uncompressed_length) { in AssertFileEntryContentsEq()
461 << " does not match expected size " << expected.size(); in AssertFileEntryContentsEq()
465 actual.resize(expected.size()); in AssertFileEntryContentsEq()
472 if (expected != actual) { in AssertFileEntryContentsEq()
474 << "' does not match expected '" << expected << "'"; in AssertFileEntryContentsEq()