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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc

Issue 15442002: Move FileAPI sandboxed filesystem related code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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 (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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" 13 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "content/public/browser/storage_partition.h" 15 #include "content/public/browser/storage_partition.h"
16 #include "content/public/test/test_browser_thread.h" 16 #include "content/public/test/test_browser_thread.h"
17 #include "webkit/browser/fileapi/file_system_usage_cache.h" 17 #include "webkit/browser/fileapi/file_system_usage_cache.h"
18 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h"
18 #include "webkit/fileapi/file_system_context.h" 19 #include "webkit/fileapi/file_system_context.h"
19 #include "webkit/fileapi/file_system_types.h" 20 #include "webkit/fileapi/file_system_types.h"
20 #include "webkit/fileapi/file_system_url.h" 21 #include "webkit/fileapi/file_system_url.h"
21 #include "webkit/fileapi/sandbox_mount_point_provider.h"
22 22
23 using content::BrowserContext; 23 using content::BrowserContext;
24 using content::BrowserThread; 24 using content::BrowserThread;
25 25
26 namespace { 26 namespace {
27 27
28 // Shorter names for fileapi::* constants. 28 // Shorter names for fileapi::* constants.
29 const fileapi::FileSystemType kTemporary = fileapi::kFileSystemTypeTemporary; 29 const fileapi::FileSystemType kTemporary = fileapi::kFileSystemTypeTemporary;
30 const fileapi::FileSystemType kPersistent = fileapi::kFileSystemTypePersistent; 30 const fileapi::FileSystemType kPersistent = fileapi::kFileSystemTypePersistent;
31 31
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // extension and devtools schemes. 315 // extension and devtools schemes.
316 TEST_F(BrowsingDataFileSystemHelperTest, IgnoreExtensionsAndDevTools) { 316 TEST_F(BrowsingDataFileSystemHelperTest, IgnoreExtensionsAndDevTools) {
317 ASSERT_TRUE(canned_helper_->empty()); 317 ASSERT_TRUE(canned_helper_->empty());
318 canned_helper_->AddFileSystem(kOriginExt, kTemporary, 0); 318 canned_helper_->AddFileSystem(kOriginExt, kTemporary, 0);
319 ASSERT_TRUE(canned_helper_->empty()); 319 ASSERT_TRUE(canned_helper_->empty());
320 canned_helper_->AddFileSystem(kOriginDevTools, kTemporary, 0); 320 canned_helper_->AddFileSystem(kOriginDevTools, kTemporary, 0);
321 ASSERT_TRUE(canned_helper_->empty()); 321 ASSERT_TRUE(canned_helper_->empty());
322 } 322 }
323 323
324 } // namespace 324 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_file_system_helper.cc ('k') | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698