Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: chrome/browser/extensions/api/automation/automation_apitest.cc

Issue 667713006: Implement automatic load of composed/embedded automation trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotRequested) { 153 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotRequested) {
154 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", 154 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs",
155 "desktop_not_requested.html")) << message_; 155 "desktop_not_requested.html")) << message_;
156 } 156 }
157 157
158 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopActions) { 158 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopActions) {
159 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", "actions.html")) 159 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", "actions.html"))
160 << message_; 160 << message_;
161 } 161 }
162
163 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopLoadTabs) {
164 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", "load_tabs.html"))
165 << message_;
166 }
162 #else 167 #else
163 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotSupported) { 168 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotSupported) {
164 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", 169 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop",
165 "desktop_not_supported.html")) << message_; 170 "desktop_not_supported.html")) << message_;
166 } 171 }
167 #endif 172 #endif
168 173
169 IN_PROC_BROWSER_TEST_F(AutomationApiTest, CloseTab) { 174 IN_PROC_BROWSER_TEST_F(AutomationApiTest, CloseTab) {
170 StartEmbeddedTestServer(); 175 StartEmbeddedTestServer();
171 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "close_tab.html")) 176 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "close_tab.html"))
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 "automationInternal.enableTab", 496 "automationInternal.enableTab",
492 FakeAutomationInternalEnableTabFunctionFactory)); 497 FakeAutomationInternalEnableTabFunctionFactory));
493 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( 498 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction(
494 "automationInternal.performAction", 499 "automationInternal.performAction",
495 FakeAutomationInternalPerformActionFunctionFactory)); 500 FakeAutomationInternalPerformActionFunctionFactory));
496 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", 501 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated",
497 "generated_trees.html")) << message_; 502 "generated_trees.html")) << message_;
498 } 503 }
499 504
500 } // namespace extensions 505 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698