}

void TestAppending(const HWC& append, const BHWC& output_shape,
                   std::vector<float>&& expected) {
  TestPadOperation(HWC(0, 0, 0), append, output_shape, std::move(expected));
}

}  // namespace

TEST(PadTest, PrependH) {
  TestPrepending(/*prepend=*/HWC(1, 0, 0),
                 /*output_shape=*/BHWC(1, 2, 1, 1), /*expected=*/{0, 1});