OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
| 9 #include "base/file_util.h" |
9 #include "base/files/file.h" | 10 #include "base/files/file.h" |
10 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "testing/platform_test.h" | 18 #include "testing/platform_test.h" |
19 #include "third_party/zlib/google/zip.h" | 19 #include "third_party/zlib/google/zip.h" |
20 #include "third_party/zlib/google/zip_reader.h" | 20 #include "third_party/zlib/google/zip_reader.h" |
21 | 21 |
22 namespace { | 22 namespace { |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 SCOPED_TRACE(base::StringPrintf("Processing %d.txt", i)); | 325 SCOPED_TRACE(base::StringPrintf("Processing %d.txt", i)); |
326 base::FilePath file_path = temp_dir.AppendASCII( | 326 base::FilePath file_path = temp_dir.AppendASCII( |
327 base::StringPrintf("%d.txt", i)); | 327 base::StringPrintf("%d.txt", i)); |
328 int64 file_size = -1; | 328 int64 file_size = -1; |
329 EXPECT_TRUE(base::GetFileSize(file_path, &file_size)); | 329 EXPECT_TRUE(base::GetFileSize(file_path, &file_size)); |
330 EXPECT_EQ(static_cast<int64>(i), file_size); | 330 EXPECT_EQ(static_cast<int64>(i), file_size); |
331 } | 331 } |
332 } | 332 } |
333 | 333 |
334 } // namespace | 334 } // namespace |
OLD | NEW |