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

Side by Side Diff: chrome/browser/media_galleries/fileapi/itunes_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 "chrome/browser/media_galleries/fileapi/itunes_file_util.h" 5 #include "chrome/browser/media_galleries/fileapi/itunes_file_util.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/synchronization/waitable_event.h" 20 #include "base/synchronization/waitable_event.h"
21 #include "base/threading/thread_task_runner_handle.h" 21 #include "base/threading/thread_task_runner_handle.h"
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "chrome/browser/media_galleries/fileapi/itunes_data_provider.h" 23 #include "chrome/browser/media_galleries/fileapi/itunes_data_provider.h"
24 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 24 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
25 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" 25 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h"
26 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" 26 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h"
27 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
28 #include "content/public/test/mock_special_storage_policy.h"
29 #include "content/public/test/test_browser_thread.h" 28 #include "content/public/test/test_browser_thread.h"
30 #include "content/public/test/test_file_system_options.h"
31 #include "storage/browser/fileapi/async_file_util.h" 29 #include "storage/browser/fileapi/async_file_util.h"
32 #include "storage/browser/fileapi/external_mount_points.h" 30 #include "storage/browser/fileapi/external_mount_points.h"
33 #include "storage/browser/fileapi/file_system_context.h" 31 #include "storage/browser/fileapi/file_system_context.h"
34 #include "storage/browser/fileapi/file_system_operation_context.h" 32 #include "storage/browser/fileapi/file_system_operation_context.h"
35 #include "storage/browser/fileapi/file_system_operation_runner.h" 33 #include "storage/browser/fileapi/file_system_operation_runner.h"
34 #include "storage/browser/test/mock_special_storage_policy.h"
35 #include "storage/browser/test/test_file_system_options.h"
36 #include "testing/gtest/include/gtest/gtest.h" 36 #include "testing/gtest/include/gtest/gtest.h"
37 37
38 using storage::FileSystemOperationContext; 38 using storage::FileSystemOperationContext;
39 using storage::FileSystemOperation; 39 using storage::FileSystemOperation;
40 using storage::FileSystemURL; 40 using storage::FileSystemURL;
41 41
42 namespace itunes { 42 namespace itunes {
43 43
44 namespace { 44 namespace {
45 45
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 completed = false; 345 completed = false;
346 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); 346 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed);
347 ASSERT_TRUE(completed); 347 ASSERT_TRUE(completed);
348 ASSERT_EQ(1u, contents.size()); 348 ASSERT_EQ(1u, contents.size());
349 EXPECT_FALSE(contents.front().is_directory); 349 EXPECT_FALSE(contents.front().is_directory);
350 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(), 350 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(),
351 contents.front().name); 351 contents.front().name);
352 } 352 }
353 353
354 } // namespace itunes 354 } // namespace itunes
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698