mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
|
||||
namespace {
|
||||
|
||||
unsigned char g_test_zip[] = {
|
||||
unsigned char g_test_zip[] = {
|
||||
0x50, 0x4b, 0x03, 0x04, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x67, 0x7f,
|
||||
0x57, 0x3d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61,
|
||||
@ -119,8 +119,7 @@ namespace {
|
||||
0x65, 0x2f, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x20, 0x32, 0x2f, 0x66,
|
||||
0x69, 0x6c, 0x65, 0x20, 0x32, 0x61, 0x2e, 0x74, 0x78, 0x74, 0x50, 0x4b,
|
||||
0x05, 0x06, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x09, 0x00, 0x9d, 0x02,
|
||||
0x00, 0x00, 0x71, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
0x00, 0x00, 0x71, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
|
||||
} // namespace
|
||||
|
||||
@ -175,7 +174,7 @@ TEST(ZipReaderTest, Read) {
|
||||
|
||||
ASSERT_TRUE(reader->MoveToNextFile());
|
||||
ASSERT_EQ(reader->GetFileName(),
|
||||
"test_archive/folder 1/folder 1a/file 1a1.txt");
|
||||
"test_archive/folder 1/folder 1a/file 1a1.txt");
|
||||
ASSERT_EQ(reader->GetFileSize(), 21);
|
||||
ASSERT_TRUE(reader->OpenFile(""));
|
||||
ASSERT_EQ(reader->ReadFile(buff, sizeof(buff)), 21);
|
||||
@ -236,7 +235,7 @@ TEST(ZipReaderTest, ReadArchive) {
|
||||
|
||||
ASSERT_EQ(file->GetDataSize(), (size_t)20);
|
||||
ASSERT_TRUE(!strncmp(reinterpret_cast<const char*>(file->GetData()),
|
||||
"Contents of file 2A.", 20));
|
||||
"Contents of file 2A.", 20));
|
||||
|
||||
// Test stream reading.
|
||||
CefRefPtr<CefStreamReader> reader(file->GetStreamReader());
|
||||
|
Reference in New Issue
Block a user