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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 | 516 |
517 return RespondNow(NoArguments()); | 517 return RespondNow(NoArguments()); |
518 } | 518 } |
519 }; | 519 }; |
520 | 520 |
521 // Factory method for use in OverrideFunction() | 521 // Factory method for use in OverrideFunction() |
522 ExtensionFunction* FakeAutomationInternalPerformActionFunctionFactory() { | 522 ExtensionFunction* FakeAutomationInternalPerformActionFunctionFactory() { |
523 return new FakeAutomationInternalPerformActionFunction(); | 523 return new FakeAutomationInternalPerformActionFunction(); |
524 } | 524 } |
525 | 525 |
526 IN_PROC_BROWSER_TEST_F(AutomationApiTest, GeneratedTree) { | 526 // http://crbug.com/396353 |
| 527 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DISABLED_GeneratedTree) { |
527 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( | 528 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( |
528 "automationInternal.enableTab", | 529 "automationInternal.enableTab", |
529 FakeAutomationInternalEnableTabFunctionFactory)); | 530 FakeAutomationInternalEnableTabFunctionFactory)); |
530 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( | 531 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( |
531 "automationInternal.performAction", | 532 "automationInternal.performAction", |
532 FakeAutomationInternalPerformActionFunctionFactory)); | 533 FakeAutomationInternalPerformActionFunctionFactory)); |
533 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", | 534 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", |
534 "generated_trees.html")) << message_; | 535 "generated_trees.html")) << message_; |
535 } | 536 } |
536 | 537 |
537 } // namespace extensions | 538 } // namespace extensions |
OLD | NEW |