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

Side by Side Diff: storage/browser/fileapi/recursive_operation_delegate_unittest.cc

Issue 2819363003: Move browser-side File API unittests next to the files they cover. (Closed)
Patch Set: 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 "storage/browser/fileapi/recursive_operation_delegate.h" 5 #include "storage/browser/fileapi/recursive_operation_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "base/run_loop.h" 16 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/test/scoped_task_environment.h" 18 #include "base/test/scoped_task_environment.h"
19 #include "base/threading/thread_task_runner_handle.h" 19 #include "base/threading/thread_task_runner_handle.h"
20 #include "content/public/test/sandbox_file_system_test_helper.h"
21 #include "storage/browser/fileapi/file_system_file_util.h" 20 #include "storage/browser/fileapi/file_system_file_util.h"
22 #include "storage/browser/fileapi/file_system_operation.h" 21 #include "storage/browser/fileapi/file_system_operation.h"
23 #include "storage/browser/fileapi/file_system_operation_runner.h" 22 #include "storage/browser/fileapi/file_system_operation_runner.h"
23 #include "storage/browser/test/sandbox_file_system_test_helper.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 using storage::FileSystemContext; 26 using storage::FileSystemContext;
27 using storage::FileSystemOperationContext; 27 using storage::FileSystemOperationContext;
28 using storage::FileSystemURL; 28 using storage::FileSystemURL;
29 29
30 namespace content { 30 namespace content {
31 namespace { 31 namespace {
32 32
33 class LoggingRecursiveOperation : public storage::RecursiveOperationDelegate { 33 class LoggingRecursiveOperation : public storage::RecursiveOperationDelegate {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 EXPECT_EQ(LoggingRecursiveOperation::LogEntry::POST_PROCESS_DIRECTORY, 380 EXPECT_EQ(LoggingRecursiveOperation::LogEntry::POST_PROCESS_DIRECTORY,
381 log_entries[6].type); 381 log_entries[6].type);
382 EXPECT_EQ(src_dir1, log_entries[6].url); 382 EXPECT_EQ(src_dir1, log_entries[6].url);
383 383
384 EXPECT_EQ(LoggingRecursiveOperation::LogEntry::POST_PROCESS_DIRECTORY, 384 EXPECT_EQ(LoggingRecursiveOperation::LogEntry::POST_PROCESS_DIRECTORY,
385 log_entries[7].type); 385 log_entries[7].type);
386 EXPECT_EQ(src_root, log_entries[7].url); 386 EXPECT_EQ(src_root, log_entries[7].url);
387 } 387 }
388 388
389 } // namespace content 389 } // namespace content
OLDNEW
« no previous file with comments | « storage/browser/fileapi/obfuscated_file_util_unittest.cc ('k') | storage/browser/test/fileapi_test_file_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698