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

Unified Diff: courgette/courgette_tool.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/courgette_tool.cc
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc
index 83a68343863267fdd8c47615bdc50edf5de9d587..e45f418698d923e0983b1a1b92c4b2d202a95f32 100644
--- a/courgette/courgette_tool.cc
+++ b/courgette/courgette_tool.cc
@@ -280,9 +280,9 @@ void DisassembleAdjustDiff(const base::FilePath& model_file,
old_source.Init(old_stream ? *old_stream : empty_sink);
new_source.Init(new_stream ? *new_stream : empty_sink);
courgette::SinkStream patch_stream;
- courgette::BSDiffStatus status =
- courgette::CreateBinaryPatch(&old_source, &new_source, &patch_stream);
- if (status != courgette::OK) Problem("-xxx failed.");
+ bsdiff::BSDiffStatus status =
+ bsdiff::CreateBinaryPatch(&old_source, &new_source, &patch_stream);
+ if (status != bsdiff::OK) Problem("-xxx failed.");
std::string append = std::string("-") + base::IntToString(i);
@@ -404,10 +404,10 @@ void GenerateBSDiffPatch(const base::FilePath& old_file,
new_stream.Init(new_buffer);
courgette::SinkStream patch_stream;
- courgette::BSDiffStatus status =
- courgette::CreateBinaryPatch(&old_stream, &new_stream, &patch_stream);
+ bsdiff::BSDiffStatus status =
+ bsdiff::CreateBinaryPatch(&old_stream, &new_stream, &patch_stream);
- if (status != courgette::OK) Problem("-genbsdiff failed.");
+ if (status != bsdiff::OK) Problem("-genbsdiff failed.");
WriteSinkToFile(&patch_stream, patch_file);
}
@@ -424,10 +424,10 @@ void ApplyBSDiffPatch(const base::FilePath& old_file,
patch_stream.Init(patch_buffer);
courgette::SinkStream new_stream;
- courgette::BSDiffStatus status =
- courgette::ApplyBinaryPatch(&old_stream, &patch_stream, &new_stream);
+ bsdiff::BSDiffStatus status =
+ bsdiff::ApplyBinaryPatch(&old_stream, &patch_stream, &new_stream);
- if (status != courgette::OK) Problem("-applybsdiff failed.");
+ if (status != bsdiff::OK) Problem("-applybsdiff failed.");
WriteSinkToFile(&new_stream, new_file);
}

Powered by Google App Engine
This is Rietveld 408576698