| OLD | NEW |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const base::FilePath& default_path, | 87 const base::FilePath& default_path, |
| 88 const FileTypeInfo* file_types, | 88 const FileTypeInfo* file_types, |
| 89 int file_type_index, | 89 int file_type_index, |
| 90 const base::FilePath::StringType& default_extension, | 90 const base::FilePath::StringType& default_extension, |
| 91 gfx::NativeWindow owning_window, | 91 gfx::NativeWindow owning_window, |
| 92 void* params) override { | 92 void* params) override { |
| 93 listener_->FileSelected( | 93 listener_->FileSelected( |
| 94 base::FilePath("/special/drive-user/root/test_dir"), 0, NULL); | 94 base::FilePath("/special/drive-user/root/test_dir"), 0, NULL); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void CloseImpl() override { NOTIMPLEMENTED(); } |
| 98 |
| 97 bool IsRunning(gfx::NativeWindow owning_window) const override { | 99 bool IsRunning(gfx::NativeWindow owning_window) const override { |
| 98 return false; | 100 return false; |
| 99 } | 101 } |
| 100 | 102 |
| 101 void ListenerDestroyed() override {} | 103 void ListenerDestroyed() override {} |
| 102 | 104 |
| 103 bool HasMultipleFileTypeChoicesImpl() override { return false; } | 105 bool HasMultipleFileTypeChoicesImpl() override { return false; } |
| 104 | 106 |
| 105 private: | 107 private: |
| 106 ~FakeSelectFileDialog() override {} | 108 ~FakeSelectFileDialog() override {} |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 AppFileHandlerMulti) { | 855 AppFileHandlerMulti) { |
| 854 EXPECT_TRUE( | 856 EXPECT_TRUE( |
| 855 RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi", | 857 RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi", |
| 856 FILE_PATH_LITERAL("manifest.json"), | 858 FILE_PATH_LITERAL("manifest.json"), |
| 857 "", | 859 "", |
| 858 FLAGS_NONE)) | 860 FLAGS_NONE)) |
| 859 << message_; | 861 << message_; |
| 860 } | 862 } |
| 861 } // namespace | 863 } // namespace |
| 862 } // namespace file_manager | 864 } // namespace file_manager |
| OLD | NEW |