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

Side by Side Diff: chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc

Issue 544483003: Add tests for File System URLs with the file:// origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/file_browser/filesystem_file_origin_url/background.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 } 766 }
767 767
768 IN_PROC_BROWSER_TEST_F(DriveFileSystemExtensionApiTest, AppFileHandler) { 768 IN_PROC_BROWSER_TEST_F(DriveFileSystemExtensionApiTest, AppFileHandler) {
769 EXPECT_TRUE(RunFileSystemExtensionApiTest( 769 EXPECT_TRUE(RunFileSystemExtensionApiTest(
770 "file_browser/handler_test_runner", 770 "file_browser/handler_test_runner",
771 FILE_PATH_LITERAL("manifest.json"), 771 FILE_PATH_LITERAL("manifest.json"),
772 "file_browser/app_file_handler", 772 "file_browser/app_file_handler",
773 FLAGS_USE_FILE_HANDLER)) << message_; 773 FLAGS_USE_FILE_HANDLER)) << message_;
774 } 774 }
775 775
776 IN_PROC_BROWSER_TEST_F(DriveFileSystemExtensionApiTest,
777 FileSystemFileOriginURL) {
778 EXPECT_TRUE(RunFileSystemExtensionApiTest(
779 "file_browser/filesystem_file_origin_url",
780 FILE_PATH_LITERAL("manifest.json"),
781 "",
782 FLAGS_NONE)) << message_;
783 }
784
776 IN_PROC_BROWSER_TEST_F(MultiProfileDriveFileSystemExtensionApiTest, 785 IN_PROC_BROWSER_TEST_F(MultiProfileDriveFileSystemExtensionApiTest,
777 CrossProfileCopy) { 786 CrossProfileCopy) {
778 ASSERT_TRUE(AddTestHostedDocuments()); 787 ASSERT_TRUE(AddTestHostedDocuments());
779 EXPECT_TRUE(RunFileSystemExtensionApiTest( 788 EXPECT_TRUE(RunFileSystemExtensionApiTest(
780 "file_browser/multi_profile_copy", 789 "file_browser/multi_profile_copy",
781 FILE_PATH_LITERAL("manifest.json"), 790 FILE_PATH_LITERAL("manifest.json"),
782 "", 791 "",
783 FLAGS_NONE)) << message_; 792 FLAGS_NONE)) << message_;
784 } 793 }
785 794
786 // 795 //
787 // LocalAndDriveFileSystemExtensionApiTests. 796 // LocalAndDriveFileSystemExtensionApiTests.
788 // 797 //
789 IN_PROC_BROWSER_TEST_F(LocalAndDriveFileSystemExtensionApiTest, 798 IN_PROC_BROWSER_TEST_F(LocalAndDriveFileSystemExtensionApiTest,
790 AppFileHandlerMulti) { 799 AppFileHandlerMulti) {
791 EXPECT_TRUE( 800 EXPECT_TRUE(
792 RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi", 801 RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi",
793 FILE_PATH_LITERAL("manifest.json"), 802 FILE_PATH_LITERAL("manifest.json"),
794 "", 803 "",
795 FLAGS_NONE)) 804 FLAGS_NONE))
796 << message_; 805 << message_;
797 } 806 }
798 } // namespace 807 } // namespace
799 } // namespace file_manager 808 } // namespace file_manager
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/file_browser/filesystem_file_origin_url/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698