| 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" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/scoped_temp_dir.h" | 12 #include "base/scoped_temp_dir.h" |
| 13 #include "base/threading/worker_pool.h" | 13 #include "base/threading/worker_pool.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
| 16 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" | 16 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" |
| 17 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" |
| 18 #include "chrome/browser/chromeos/gdata/gdata_parser.h" |
| 17 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" | 19 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" |
| 18 #include "chrome/browser/chromeos/gdata/gdata_parser.h" | |
| 19 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | |
| 20 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 20 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
| 21 #include "chrome/browser/chromeos/gdata/mock_gdata_documents_service.h" | 21 #include "chrome/browser/chromeos/gdata/mock_gdata_documents_service.h" |
| 22 #include "chrome/browser/extensions/extension_apitest.h" | 22 #include "chrome/browser/extensions/extension_apitest.h" |
| 23 #include "chrome/browser/extensions/extension_test_message_listener.h" | 23 #include "chrome/browser/extensions/extension_test_message_listener.h" |
| 24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/browser/ui/browser.h" | 25 #include "chrome/browser/ui/browser.h" |
| 26 #include "chrome/common/chrome_notification_types.h" | 26 #include "chrome/common/chrome_notification_types.h" |
| 27 #include "chrome/common/chrome_paths.h" |
| 27 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/test/base/ui_test_utils.h" | 29 #include "chrome/test/base/ui_test_utils.h" |
| 29 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
| 30 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
| 31 #include "webkit/fileapi/file_system_context.h" | 32 #include "webkit/fileapi/file_system_context.h" |
| 32 #include "webkit/fileapi/file_system_mount_point_provider.h" | 33 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 33 | 34 |
| 34 using ::testing::_; | 35 using ::testing::_; |
| 35 using ::testing::Return; | 36 using ::testing::Return; |
| 36 using content::BrowserContext; | 37 using content::BrowserContext; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // This one is called on exit, but we don't care much about it, as long as it | 300 // This one is called on exit, but we don't care much about it, as long as it |
| 300 // retunrs something valid (i.e. not NULL). | 301 // retunrs something valid (i.e. not NULL). |
| 301 EXPECT_CALL(*mock_documents_service_, operation_registry()). | 302 EXPECT_CALL(*mock_documents_service_, operation_registry()). |
| 302 WillRepeatedly(Return(operation_registry_.get())); | 303 WillRepeatedly(Return(operation_registry_.get())); |
| 303 | 304 |
| 304 // All is set... RUN THE TEST. | 305 // All is set... RUN THE TEST. |
| 305 EXPECT_TRUE(RunExtensionTest("filesystem_handler")) << message_; | 306 EXPECT_TRUE(RunExtensionTest("filesystem_handler")) << message_; |
| 306 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote.html", | 307 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote.html", |
| 307 kComponentFlags)) << message_; | 308 kComponentFlags)) << message_; |
| 308 } | 309 } |
| OLD | NEW |