OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "chrome/browser/extensions/api/automation_internal/automation_util.h" | 8 #include "chrome/browser/extensions/api/automation_internal/automation_util.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
11 #include "chrome/browser/extensions/extension_test_message_listener.h" | |
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
13 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
14 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/extensions/api/automation_internal.h" | 14 #include "chrome/common/extensions/api/automation_internal.h" |
16 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
17 #include "content/public/browser/ax_event_notification_details.h" | 16 #include "content/public/browser/ax_event_notification_details.h" |
18 #include "content/public/browser/render_widget_host.h" | 17 #include "content/public/browser/render_widget_host.h" |
19 #include "content/public/browser/render_widget_host_view.h" | 18 #include "content/public/browser/render_widget_host_view.h" |
20 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
| 20 #include "extensions/test/extension_test_message_listener.h" |
21 #include "net/dns/mock_host_resolver.h" | 21 #include "net/dns/mock_host_resolver.h" |
22 #include "net/test/embedded_test_server/embedded_test_server.h" | 22 #include "net/test/embedded_test_server/embedded_test_server.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "ui/accessibility/ax_node.h" | 24 #include "ui/accessibility/ax_node.h" |
25 #include "ui/accessibility/ax_serializable_tree.h" | 25 #include "ui/accessibility/ax_serializable_tree.h" |
26 #include "ui/accessibility/ax_tree.h" | 26 #include "ui/accessibility/ax_tree.h" |
27 #include "ui/accessibility/ax_tree_serializer.h" | 27 #include "ui/accessibility/ax_tree_serializer.h" |
28 #include "ui/accessibility/tree_generator.h" | 28 #include "ui/accessibility/tree_generator.h" |
29 | 29 |
30 namespace extensions { | 30 namespace extensions { |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 "automationInternal.enableTab", | 491 "automationInternal.enableTab", |
492 FakeAutomationInternalEnableTabFunctionFactory)); | 492 FakeAutomationInternalEnableTabFunctionFactory)); |
493 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( | 493 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( |
494 "automationInternal.performAction", | 494 "automationInternal.performAction", |
495 FakeAutomationInternalPerformActionFunctionFactory)); | 495 FakeAutomationInternalPerformActionFunctionFactory)); |
496 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", | 496 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", |
497 "generated_trees.html")) << message_; | 497 "generated_trees.html")) << message_; |
498 } | 498 } |
499 | 499 |
500 } // namespace extensions | 500 } // namespace extensions |
OLD | NEW |