| Index: courgette/bsdiff_memory_unittest.cc
|
| diff --git a/courgette/bsdiff_memory_unittest.cc b/courgette/bsdiff_memory_unittest.cc
|
| index a9423d4e3c3b4e3761c101b8fab25c63304d0d04..09bfd2b810054d171d4a809038bb93f9bfa38d20 100644
|
| --- a/courgette/bsdiff_memory_unittest.cc
|
| +++ b/courgette/bsdiff_memory_unittest.cc
|
| @@ -25,8 +25,9 @@ void BSDiffMemoryTest::GenerateAndTestPatch(const std::string& old_text,
|
| new1.Init(new_text.c_str(), new_text.length());
|
|
|
| courgette::SinkStream patch1;
|
| - courgette::BSDiffStatus status = CreateBinaryPatch(&old1, &new1, &patch1);
|
| - EXPECT_EQ(courgette::OK, status);
|
| + bsdiff::BSDiffStatus status =
|
| + bsdiff::CreateBinaryPatch(&old1, &new1, &patch1);
|
| + EXPECT_EQ(bsdiff::OK, status);
|
|
|
| courgette::SourceStream old2;
|
| courgette::SourceStream patch2;
|
| @@ -34,8 +35,8 @@ void BSDiffMemoryTest::GenerateAndTestPatch(const std::string& old_text,
|
| patch2.Init(patch1);
|
|
|
| courgette::SinkStream new2;
|
| - status = ApplyBinaryPatch(&old2, &patch2, &new2);
|
| - EXPECT_EQ(courgette::OK, status);
|
| + status = bsdiff::ApplyBinaryPatch(&old2, &patch2, &new2);
|
| + EXPECT_EQ(bsdiff::OK, status);
|
| EXPECT_EQ(new_text.length(), new2.Length());
|
| EXPECT_EQ(0, memcmp(new_text.c_str(), new2.Buffer(), new_text.length()));
|
| }
|
|
|