Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: courgette/bsdiff_memory_unittest.cc

Issue 2031193002: [Courgette] Refactor BSDiff namespaces and bsdiff::search() interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more gap; fix Installer confusion; update README.chromium. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()));
}

Powered by Google App Engine
This is Rietveld 408576698