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

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

Powered by Google App Engine
This is Rietveld 408576698