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

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

Issue 559063002: Remove webkit/browser/, point everything to storage/browser/ instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up DEPS per feedback Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/format_macros.h" 11 #include "base/format_macros.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/message_loop/message_loop_proxy.h" 13 #include "base/message_loop/message_loop_proxy.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 16 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
17 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" 17 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h"
18 #include "content/public/test/mock_special_storage_policy.h" 18 #include "content/public/test/mock_special_storage_policy.h"
19 #include "content/public/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
20 #include "content/public/test/test_file_system_options.h" 20 #include "content/public/test/test_file_system_options.h"
21 #include "storage/browser/fileapi/external_mount_points.h"
22 #include "storage/browser/fileapi/file_system_backend.h"
23 #include "storage/browser/fileapi/file_system_context.h"
24 #include "storage/browser/fileapi/file_system_operation_runner.h"
25 #include "storage/browser/fileapi/file_system_url.h"
26 #include "storage/browser/fileapi/isolated_context.h"
27 #include "storage/browser/fileapi/native_file_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
22 #include "webkit/browser/fileapi/external_mount_points.h"
23 #include "webkit/browser/fileapi/file_system_backend.h"
24 #include "webkit/browser/fileapi/file_system_context.h"
25 #include "webkit/browser/fileapi/file_system_operation_runner.h"
26 #include "webkit/browser/fileapi/file_system_url.h"
27 #include "webkit/browser/fileapi/isolated_context.h"
28 #include "webkit/browser/fileapi/native_file_util.h"
29 29
30 #define FPL(x) FILE_PATH_LITERAL(x) 30 #define FPL(x) FILE_PATH_LITERAL(x)
31 31
32 using storage::FileSystemOperation; 32 using storage::FileSystemOperation;
33 using storage::FileSystemURL; 33 using storage::FileSystemURL;
34 34
35 namespace { 35 namespace {
36 36
37 typedef FileSystemOperation::FileEntryList FileEntryList; 37 typedef FileSystemOperation::FileEntryList FileEntryList;
38 38
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 expected_error = base::File::FILE_OK; 568 expected_error = base::File::FILE_OK;
569 else 569 else
570 expected_error = base::File::FILE_ERROR_SECURITY; 570 expected_error = base::File::FILE_ERROR_SECURITY;
571 error = base::File::FILE_ERROR_FAILED; 571 error = base::File::FILE_ERROR_FAILED;
572 operation_runner()->CreateSnapshotFile(url, 572 operation_runner()->CreateSnapshotFile(url,
573 base::Bind(CreateSnapshotCallback, &error)); 573 base::Bind(CreateSnapshotCallback, &error));
574 base::MessageLoop::current()->RunUntilIdle(); 574 base::MessageLoop::current()->RunUntilIdle();
575 ASSERT_EQ(expected_error, error); 575 ASSERT_EQ(expected_error, error);
576 } 576 }
577 } 577 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698