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

Unified Diff: third_party/zlib/google/zip_reader_unittest.cc

Issue 14021015: Move components/zip to third_party/zip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unit_tests.isolate for new test data location Created 7 years, 8 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
« no previous file with comments | « third_party/zlib/google/zip_reader.cc ('k') | third_party/zlib/google/zip_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/zlib/google/zip_reader_unittest.cc
diff --git a/components/zip/zip_reader_unittest.cc b/third_party/zlib/google/zip_reader_unittest.cc
similarity index 98%
rename from components/zip/zip_reader_unittest.cc
rename to third_party/zlib/google/zip_reader_unittest.cc
index 0b4b55499953b596ce587350085cbf80f8927a0e..a12b04e6c02564846d06c53a006357dedeed4444 100644
--- a/components/zip/zip_reader_unittest.cc
+++ b/third_party/zlib/google/zip_reader_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/zip/zip_reader.h"
+#include "third_party/zlib/google/zip_reader.h"
#include <set>
#include <string>
@@ -15,9 +15,9 @@
#include "base/platform_file.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
-#include "components/zip/zip_internal.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
+#include "third_party/zlib/google/zip_internal.h"
namespace {
@@ -75,7 +75,6 @@ class ZipReaderTest : public PlatformTest {
test_dir_ = temp_dir_.path();
ASSERT_TRUE(GetTestDataDirectory(&test_data_dir_));
- test_data_dir_ = test_data_dir_.AppendASCII("zip");
test_zip_file_ = test_data_dir_.AppendASCII("test.zip");
evil_zip_file_ = test_data_dir_.AppendASCII("evil.zip");
@@ -106,7 +105,9 @@ class ZipReaderTest : public PlatformTest {
EXPECT_TRUE(success);
if (!success)
return false;
- *path = path->AppendASCII("components");
+ *path = path->AppendASCII("third_party");
+ *path = path->AppendASCII("zlib");
+ *path = path->AppendASCII("google");
*path = path->AppendASCII("test");
*path = path->AppendASCII("data");
return true;
« no previous file with comments | « third_party/zlib/google/zip_reader.cc ('k') | third_party/zlib/google/zip_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698