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

Side by Side Diff: content/browser/fileapi/local_file_util_unittest.cc

Issue 2815743002: Move a couple of blob tests next to the files they cover. (Closed)
Patch Set: Fix gn check, take 2. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.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/macros.h" 14 #include "base/macros.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "base/test/scoped_task_environment.h" 18 #include "base/test/scoped_task_environment.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "content/public/test/async_file_test_helper.h"
21 #include "content/public/test/test_file_system_context.h"
22 #include "storage/browser/fileapi/async_file_util_adapter.h" 20 #include "storage/browser/fileapi/async_file_util_adapter.h"
23 #include "storage/browser/fileapi/file_system_context.h" 21 #include "storage/browser/fileapi/file_system_context.h"
24 #include "storage/browser/fileapi/file_system_file_util.h" 22 #include "storage/browser/fileapi/file_system_file_util.h"
25 #include "storage/browser/fileapi/file_system_operation_context.h" 23 #include "storage/browser/fileapi/file_system_operation_context.h"
26 #include "storage/browser/fileapi/local_file_util.h" 24 #include "storage/browser/fileapi/local_file_util.h"
27 #include "storage/browser/fileapi/native_file_util.h" 25 #include "storage/browser/fileapi/native_file_util.h"
26 #include "storage/browser/test/async_file_test_helper.h"
27 #include "storage/browser/test/test_file_system_context.h"
28 #include "storage/common/fileapi/file_system_types.h" 28 #include "storage/common/fileapi/file_system_types.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using content::AsyncFileTestHelper; 31 using content::AsyncFileTestHelper;
32 using storage::AsyncFileUtilAdapter; 32 using storage::AsyncFileUtilAdapter;
33 using storage::FileSystemContext; 33 using storage::FileSystemContext;
34 using storage::FileSystemOperationContext; 34 using storage::FileSystemOperationContext;
35 using storage::FileSystemURL; 35 using storage::FileSystemURL;
36 using storage::LocalFileUtil; 36 using storage::LocalFileUtil;
37 37
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 CreateURL(from_dir), 373 CreateURL(from_dir),
374 CreateURL(to_dir))); 374 CreateURL(to_dir)));
375 375
376 EXPECT_FALSE(DirectoryExists(from_dir)); 376 EXPECT_FALSE(DirectoryExists(from_dir));
377 EXPECT_TRUE(DirectoryExists(to_dir)); 377 EXPECT_TRUE(DirectoryExists(to_dir));
378 EXPECT_TRUE(FileExists(to_file)); 378 EXPECT_TRUE(FileExists(to_file));
379 EXPECT_EQ(1020, GetSize(to_file)); 379 EXPECT_EQ(1020, GetSize(to_file));
380 } 380 }
381 381
382 } // namespace content 382 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter_unittest.cc ('k') | content/browser/fileapi/obfuscated_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698