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

Side by Side Diff: storage/browser/test/test_file_system_options.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
« no previous file with comments | « storage/browser/test/test_file_system_options.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/test_file_system_options.h"
5 #include "build/build_config.h" 6 #include "build/build_config.h"
6 #include "content/public/test/test_file_system_options.h"
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 using storage::FileSystemOptions; 11 using storage::FileSystemOptions;
12 12
13 namespace content { 13 namespace content {
14 14
15 FileSystemOptions CreateIncognitoFileSystemOptions() { 15 FileSystemOptions CreateIncognitoFileSystemOptions() {
16 std::vector<std::string> additional_allowed_schemes; 16 std::vector<std::string> additional_allowed_schemes;
17 #if defined(OS_CHROMEOS) 17 #if defined(OS_CHROMEOS)
18 additional_allowed_schemes.push_back("chrome-extension"); 18 additional_allowed_schemes.push_back("chrome-extension");
19 #endif 19 #endif
20 return FileSystemOptions(FileSystemOptions::PROFILE_MODE_INCOGNITO, 20 return FileSystemOptions(FileSystemOptions::PROFILE_MODE_INCOGNITO,
21 additional_allowed_schemes, 21 additional_allowed_schemes, NULL);
22 NULL);
23 } 22 }
24 23
25 FileSystemOptions CreateAllowFileAccessOptions() { 24 FileSystemOptions CreateAllowFileAccessOptions() {
26 std::vector<std::string> additional_allowed_schemes; 25 std::vector<std::string> additional_allowed_schemes;
27 additional_allowed_schemes.push_back("file"); 26 additional_allowed_schemes.push_back("file");
28 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
29 additional_allowed_schemes.push_back("chrome-extension"); 28 additional_allowed_schemes.push_back("chrome-extension");
30 #endif 29 #endif
31 return FileSystemOptions(FileSystemOptions::PROFILE_MODE_NORMAL, 30 return FileSystemOptions(FileSystemOptions::PROFILE_MODE_NORMAL,
32 additional_allowed_schemes, 31 additional_allowed_schemes, NULL);
33 NULL);
34 } 32 }
35 33
36 FileSystemOptions CreateDisallowFileAccessOptions() { 34 FileSystemOptions CreateDisallowFileAccessOptions() {
37 std::vector<std::string> additional_allowed_schemes; 35 std::vector<std::string> additional_allowed_schemes;
38 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
39 additional_allowed_schemes.push_back("chrome-extension"); 37 additional_allowed_schemes.push_back("chrome-extension");
40 #endif 38 #endif
41 return FileSystemOptions(FileSystemOptions::PROFILE_MODE_NORMAL, 39 return FileSystemOptions(FileSystemOptions::PROFILE_MODE_NORMAL,
42 additional_allowed_schemes, 40 additional_allowed_schemes, NULL);
43 NULL);
44 } 41 }
45 42
46 } // namespace content 43 } // namespace content
OLDNEW
« no previous file with comments | « storage/browser/test/test_file_system_options.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698