Skip to content
Snippets Groups Projects
Commit adf4cf03 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7347062 from ee60e455 to sc-v2-release

Change-Id: Ia68b551365cc5acdbecffb22ab75fd34c9dce47a
parents 5a195ff6 ee60e455
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,11 @@ third_party {
type: GIT
value: "https://chromium.googlesource.com/chromium/src/third_party/zlib/"
}
version: "09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e"
version: "eb9ce8c993117f27ea0e5bccc0f2fee2a5323066"
license_type: NOTICE
last_upgrade_date {
year: 2021
month: 4
day: 1
month: 5
day: 6
}
}
......@@ -15,7 +15,7 @@
* Note this code can be compiled outside of the Chromium build system against
* the system zlib (-lz) with g++ or clang++ as follows:
*
* g++|clang++ -O3 -Wall -std=c++11 -lstdc++ -lz zlib_bench.cc
* g++|clang++ -O3 -Wall -std=c++11 zlib_bench.cc -lstdc++ -lz
*/
#include <algorithm>
......@@ -306,11 +306,10 @@ bool get_compression(int argc, char* argv[], int* value) {
return *value >= 0 && *value <= 9;
}
const char* options = "gzip|zlib|raw [--compression 0:9] [--huffman|--rle]";
void usage_exit(const char* program) {
printf(
"usage: %s gzip|zlib|raw [--compression 0:9] [--huffman|--rle] "
"files...\n",
program);
printf("usage: %s %s files...", program, options);
exit(1);
}
......
......@@ -20,6 +20,7 @@
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/stl_util.h"
#include "base/strings/string_piece.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
......@@ -510,12 +511,12 @@ TEST_F(ZipReaderTest, ExtractCurrentEntryToString) {
if (i > 0) {
// Exact byte read limit: must pass.
EXPECT_TRUE(reader.ExtractCurrentEntryToString(i, &contents));
EXPECT_EQ(base::StringPiece("0123456", i).as_string(), contents);
EXPECT_EQ(std::string(base::StringPiece("0123456", i)), contents);
}
// More than necessary byte read limit: must pass.
EXPECT_TRUE(reader.ExtractCurrentEntryToString(16, &contents));
EXPECT_EQ(base::StringPiece("0123456", i).as_string(), contents);
EXPECT_EQ(std::string(base::StringPiece("0123456", i)), contents);
}
reader.Close();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment