| 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 // File contains browser tests for the fileBrowserHandler api. | 5 // File contains browser tests for the fileBrowserHandler api. |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_handler_a
pi.h" | 7 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_handler_a
pi.h" |
| 8 | 8 |
| 9 #include <stddef.h> |
| 10 |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 14 #include "base/values.h" | 17 #include "base/values.h" |
| 15 #include "chrome/browser/extensions/extension_apitest.h" | 18 #include "chrome/browser/extensions/extension_apitest.h" |
| 16 #include "chrome/browser/extensions/extension_function_test_utils.h" | 19 #include "chrome/browser/extensions/extension_function_test_utils.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/test/base/in_process_browser_test.h" | 22 #include "chrome/test/base/in_process_browser_test.h" |
| 20 #include "chrome/test/base/ui_test_utils.h" | 23 #include "chrome/test/base/ui_test_utils.h" |
| 21 #include "content/public/browser/browser_context.h" | 24 #include "content/public/browser/browser_context.h" |
| 22 #include "extensions/browser/api_test_utils.h" | 25 #include "extensions/browser/api_test_utils.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 select_file_function.get(), | 374 select_file_function.get(), |
| 372 "[{\"suggestedName\": \"/path_to_file/some_file_name.txt\"}]", | 375 "[{\"suggestedName\": \"/path_to_file/some_file_name.txt\"}]", |
| 373 browser()))); | 376 browser()))); |
| 374 | 377 |
| 375 EXPECT_FALSE(extensions::api_test_utils::GetBoolean(result.get(), "success")); | 378 EXPECT_FALSE(extensions::api_test_utils::GetBoolean(result.get(), "success")); |
| 376 base::DictionaryValue* entry_info; | 379 base::DictionaryValue* entry_info; |
| 377 EXPECT_FALSE(result->GetDictionary("entry", &entry_info)); | 380 EXPECT_FALSE(result->GetDictionary("entry", &entry_info)); |
| 378 } | 381 } |
| 379 | 382 |
| 380 } // namespace | 383 } // namespace |
| OLD | NEW |