| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 EXPECT_CALL(*mock_documents_service_, | 300 EXPECT_CALL(*mock_documents_service_, |
| 301 DownloadFile(_, _, GURL("https://file_content_url_changed"), | 301 DownloadFile(_, _, GURL("https://file_content_url_changed"), |
| 302 _, _)) | 302 _, _)) |
| 303 .WillOnce(MockDownloadFileCallback(gdata::HTTP_SUCCESS)); | 303 .WillOnce(MockDownloadFileCallback(gdata::HTTP_SUCCESS)); |
| 304 | 304 |
| 305 // On exit, all operations in progress should be cancelled. | 305 // On exit, all operations in progress should be cancelled. |
| 306 EXPECT_CALL(*mock_documents_service_, CancelAll()); | 306 EXPECT_CALL(*mock_documents_service_, CancelAll()); |
| 307 // This one is called on exit, but we don't care much about it, as long as it | 307 // This one is called on exit, but we don't care much about it, as long as it |
| 308 // retunrs something valid (i.e. not NULL). | 308 // retunrs something valid (i.e. not NULL). |
| 309 EXPECT_CALL(*mock_documents_service_, operation_registry()). | 309 EXPECT_CALL(*mock_documents_service_, operation_registry()). |
| 310 WillOnce(Return(operation_registry_.get())); | 310 WillRepeatedly(Return(operation_registry_.get())); |
| 311 | 311 |
| 312 // All is set... RUN THE TEST. | 312 // All is set... RUN THE TEST. |
| 313 EXPECT_TRUE(RunExtensionTest("filesystem_handler")) << message_; | 313 EXPECT_TRUE(RunExtensionTest("filesystem_handler")) << message_; |
| 314 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote.html", | 314 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote.html", |
| 315 kComponentFlags)) << message_; | 315 kComponentFlags)) << message_; |
| 316 } | 316 } |
| OLD | NEW |