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

Side by Side Diff: content/browser/fileapi/file_system_operation_runner_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 <utility> 5 #include <utility>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/test/scoped_task_environment.h" 11 #include "base/test/scoped_task_environment.h"
12 #include "base/threading/thread_restrictions.h" 12 #include "base/threading/thread_restrictions.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "content/public/test/mock_special_storage_policy.h"
16 #include "content/public/test/test_browser_thread_bundle.h" 15 #include "content/public/test/test_browser_thread_bundle.h"
17 #include "content/public/test/test_file_system_context.h"
18 #include "content/public/test/test_file_system_options.h"
19 #include "storage/browser/fileapi/external_mount_points.h" 16 #include "storage/browser/fileapi/external_mount_points.h"
20 #include "storage/browser/fileapi/file_system_backend.h" 17 #include "storage/browser/fileapi/file_system_backend.h"
21 #include "storage/browser/fileapi/file_system_context.h" 18 #include "storage/browser/fileapi/file_system_context.h"
22 #include "storage/browser/fileapi/file_system_operation_runner.h" 19 #include "storage/browser/fileapi/file_system_operation_runner.h"
20 #include "storage/browser/test/mock_special_storage_policy.h"
21 #include "storage/browser/test/test_file_system_context.h"
22 #include "storage/browser/test/test_file_system_options.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 using storage::FileSystemContext; 25 using storage::FileSystemContext;
26 using storage::FileSystemOperationRunner; 26 using storage::FileSystemOperationRunner;
27 using storage::FileSystemType; 27 using storage::FileSystemType;
28 using storage::FileSystemURL; 28 using storage::FileSystemURL;
29 29
30 namespace content { 30 namespace content {
31 31
32 namespace { 32 namespace {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 base::RunLoop run_loop; 240 base::RunLoop run_loop;
241 BrowserThread::PostTaskAndReply( 241 BrowserThread::PostTaskAndReply(
242 BrowserThread::FILE, FROM_HERE, 242 BrowserThread::FILE, FROM_HERE,
243 base::Bind(&base::DoNothing), 243 base::Bind(&base::DoNothing),
244 run_loop.QuitClosure()); 244 run_loop.QuitClosure());
245 run_loop.Run(); 245 run_loop.Run();
246 // This should finish without thread assertion failure on debug build. 246 // This should finish without thread assertion failure on debug build.
247 } 247 }
248 248
249 } // namespace content 249 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698