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

Side by Side Diff: chrome/browser/media_galleries/fileapi/itunes_file_util_unittest.cc

Issue 27094003: Remove fileapi::FileSystemFileUtil dependency in media gallery code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/public/test/test_browser_thread.h" 21 #include "content/public/test/test_browser_thread.h"
22 #include "content/public/test/test_file_system_options.h" 22 #include "content/public/test/test_file_system_options.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "webkit/browser/fileapi/async_file_util.h" 24 #include "webkit/browser/fileapi/async_file_util.h"
25 #include "webkit/browser/fileapi/external_mount_points.h" 25 #include "webkit/browser/fileapi/external_mount_points.h"
26 #include "webkit/browser/fileapi/file_system_context.h" 26 #include "webkit/browser/fileapi/file_system_context.h"
27 #include "webkit/browser/fileapi/file_system_operation_context.h" 27 #include "webkit/browser/fileapi/file_system_operation_context.h"
28 #include "webkit/browser/fileapi/file_system_operation_runner.h" 28 #include "webkit/browser/fileapi/file_system_operation_runner.h"
29 #include "webkit/browser/quota/mock_special_storage_policy.h" 29 #include "webkit/browser/quota/mock_special_storage_policy.h"
30 30
31 using fileapi::FileSystemFileUtil;
32 using fileapi::FileSystemOperationContext; 31 using fileapi::FileSystemOperationContext;
33 using fileapi::FileSystemOperation; 32 using fileapi::FileSystemOperation;
34 using fileapi::FileSystemURL; 33 using fileapi::FileSystemURL;
35 34
36 namespace itunes { 35 namespace itunes {
37 36
38 namespace { 37 namespace {
39 38
40 void ReadDirectoryTestHelperCallback( 39 void ReadDirectoryTestHelperCallback(
41 base::RunLoop* run_loop, 40 base::RunLoop* run_loop,
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 completed = false; 335 completed = false;
337 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); 336 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed);
338 ASSERT_TRUE(completed); 337 ASSERT_TRUE(completed);
339 ASSERT_EQ(1u, contents.size()); 338 ASSERT_EQ(1u, contents.size());
340 EXPECT_FALSE(contents.front().is_directory); 339 EXPECT_FALSE(contents.front().is_directory);
341 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(), 340 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(),
342 contents.front().name); 341 contents.front().name);
343 } 342 }
344 343
345 } // namespace itunes 344 } // namespace itunes
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698