| 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" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "find.html")) | 199 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "find.html")) |
| 200 << message_; | 200 << message_; |
| 201 } | 201 } |
| 202 | 202 |
| 203 // Flaky on Linux and Windows. http://crbug.com/467921 | 203 // Flaky on Linux and Windows. http://crbug.com/467921 |
| 204 #if defined(OS_LINUX) || defined(OS_WIN) | 204 #if defined(OS_LINUX) || defined(OS_WIN) |
| 205 #define MAYBE_Mixins DISABLED_Mixins | 205 #define MAYBE_Mixins DISABLED_Mixins |
| 206 #else | 206 #else |
| 207 #define MAYBE_Mixins Mixins | 207 #define MAYBE_Mixins Mixins |
| 208 #endif | 208 #endif |
| 209 IN_PROC_BROWSER_TEST_F(AutomationApiTest, Mixins) { | 209 IN_PROC_BROWSER_TEST_F(AutomationApiTest, MAYBE_Mixins) { |
| 210 StartEmbeddedTestServer(); | 210 StartEmbeddedTestServer(); |
| 211 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "mixins.html")) | 211 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "mixins.html")) |
| 212 << message_; | 212 << message_; |
| 213 } | 213 } |
| 214 | 214 |
| 215 IN_PROC_BROWSER_TEST_F(AutomationApiTest, TreeChange) { | 215 IN_PROC_BROWSER_TEST_F(AutomationApiTest, TreeChange) { |
| 216 StartEmbeddedTestServer(); | 216 StartEmbeddedTestServer(); |
| 217 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "tree_change.html")) | 217 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "tree_change.html")) |
| 218 << message_; | 218 << message_; |
| 219 } | 219 } |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 "automationInternal.enableTab", | 537 "automationInternal.enableTab", |
| 538 FakeAutomationInternalEnableTabFunctionFactory)); | 538 FakeAutomationInternalEnableTabFunctionFactory)); |
| 539 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( | 539 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( |
| 540 "automationInternal.performAction", | 540 "automationInternal.performAction", |
| 541 FakeAutomationInternalPerformActionFunctionFactory)); | 541 FakeAutomationInternalPerformActionFunctionFactory)); |
| 542 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", | 542 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", |
| 543 "generated_trees.html")) << message_; | 543 "generated_trees.html")) << message_; |
| 544 } | 544 } |
| 545 | 545 |
| 546 } // namespace extensions | 546 } // namespace extensions |
| OLD | NEW |