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

Side by Side Diff: content/browser/fileapi/dragged_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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/files/file_enumerator.h" 14 #include "base/files/file_enumerator.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/files/scoped_temp_dir.h" 16 #include "base/files/scoped_temp_dir.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ptr_util.h" 19 #include "base/memory/ptr_util.h"
20 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/public/test/async_file_test_helper.h"
24 #include "content/public/test/test_file_system_context.h"
25 #include "content/test/fileapi_test_file_set.h" 23 #include "content/test/fileapi_test_file_set.h"
26 #include "storage/browser/fileapi/dragged_file_util.h" 24 #include "storage/browser/fileapi/dragged_file_util.h"
27 #include "storage/browser/fileapi/file_system_context.h" 25 #include "storage/browser/fileapi/file_system_context.h"
28 #include "storage/browser/fileapi/file_system_operation_context.h" 26 #include "storage/browser/fileapi/file_system_operation_context.h"
29 #include "storage/browser/fileapi/isolated_context.h" 27 #include "storage/browser/fileapi/isolated_context.h"
30 #include "storage/browser/fileapi/local_file_util.h" 28 #include "storage/browser/fileapi/local_file_util.h"
31 #include "storage/browser/fileapi/native_file_util.h" 29 #include "storage/browser/fileapi/native_file_util.h"
30 #include "storage/browser/test/async_file_test_helper.h"
31 #include "storage/browser/test/test_file_system_context.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
34 using content::AsyncFileTestHelper; 34 using content::AsyncFileTestHelper;
35 using storage::FileSystemContext; 35 using storage::FileSystemContext;
36 using storage::FileSystemOperationContext; 36 using storage::FileSystemOperationContext;
37 using storage::FileSystemType; 37 using storage::FileSystemType;
38 using storage::FileSystemURL; 38 using storage::FileSystemURL;
39 39
40 namespace content { 40 namespace content {
41 41
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 EXPECT_EQ(base::File::FILE_OK, 545 EXPECT_EQ(base::File::FILE_OK,
546 file_util()->Truncate(GetOperationContext().get(), url, 999)); 546 file_util()->Truncate(GetOperationContext().get(), url, 999));
547 ASSERT_EQ(base::File::FILE_OK, 547 ASSERT_EQ(base::File::FILE_OK,
548 file_util()->GetFileInfo(GetOperationContext().get(), url, 548 file_util()->GetFileInfo(GetOperationContext().get(), url,
549 &info, &platform_path)); 549 &info, &platform_path));
550 EXPECT_EQ(999, info.size); 550 EXPECT_EQ(999, info.size);
551 } 551 }
552 } 552 }
553 553
554 } // namespace content 554 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698