| 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/file_path.h" | 6 #include "base/file_path.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 } | 244 } |
| 245 | 245 |
| 246 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestLazy) { | 246 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestLazy) { |
| 247 AddTmpMountPoint(); | 247 AddTmpMountPoint(); |
| 248 ASSERT_TRUE(LoadExtensionAndWait("filesystem_handler_lazy_background")) | 248 ASSERT_TRUE(LoadExtensionAndWait("filesystem_handler_lazy_background")) |
| 249 << message_; | 249 << message_; |
| 250 ASSERT_TRUE(RunExtensionSubtest( | 250 ASSERT_TRUE(RunExtensionSubtest( |
| 251 "filebrowser_component", "read.html", kComponentFlags)) << message_; | 251 "filebrowser_component", "read.html", kComponentFlags)) << message_; |
| 252 } | 252 } |
| 253 | 253 |
| 254 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserWebIntentTest) { |
| 255 AddTmpMountPoint(); |
| 256 |
| 257 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("webintent_handler"))); |
| 258 ASSERT_TRUE(RunExtensionSubtest( |
| 259 "filebrowser_component", |
| 260 "intent-read.html", |
| 261 kComponentFlags)) << message_; |
| 262 |
| 263 ResultCatcher catcher; |
| 264 ASSERT_TRUE(catcher.GetNextResult()) << message_; |
| 265 } |
| 266 |
| 254 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestWrite) { | 267 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestWrite) { |
| 255 AddTmpMountPoint(); | 268 AddTmpMountPoint(); |
| 256 ASSERT_TRUE(RunExtensionTest("filesystem_handler_write")) << message_; | 269 ASSERT_TRUE(RunExtensionTest("filesystem_handler_write")) << message_; |
| 257 ASSERT_TRUE(RunExtensionSubtest( | 270 ASSERT_TRUE(RunExtensionSubtest( |
| 258 "filebrowser_component", "write.html", kComponentFlags)) << message_; | 271 "filebrowser_component", "write.html", kComponentFlags)) << message_; |
| 259 } | 272 } |
| 260 | 273 |
| 261 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, | 274 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, |
| 262 FileBrowserTestWriteReadOnly) { | 275 FileBrowserTestWriteReadOnly) { |
| 263 AddTmpMountPoint(); | 276 AddTmpMountPoint(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 _, _)) | 368 _, _)) |
| 356 .WillOnce(MockDownloadFileCallback(gdata::HTTP_SUCCESS)); | 369 .WillOnce(MockDownloadFileCallback(gdata::HTTP_SUCCESS)); |
| 357 | 370 |
| 358 // On exit, all operations in progress should be cancelled. | 371 // On exit, all operations in progress should be cancelled. |
| 359 EXPECT_CALL(*mock_drive_service_, CancelAll()); | 372 EXPECT_CALL(*mock_drive_service_, CancelAll()); |
| 360 | 373 |
| 361 // All is set... RUN THE TEST. | 374 // All is set... RUN THE TEST. |
| 362 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote_search.html", | 375 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote_search.html", |
| 363 kComponentFlags)) << message_; | 376 kComponentFlags)) << message_; |
| 364 } | 377 } |
| OLD | NEW |