Chromium Code Reviews| Index: chrome/browser/extensions/api/automation/automation_apitest.cc |
| diff --git a/chrome/browser/extensions/api/automation/automation_apitest.cc b/chrome/browser/extensions/api/automation/automation_apitest.cc |
| index 87ce614914bc193fe566c2efcfcfa41d3196ff2d..b5e26a265659639eded70ebb6f82ddbe08ee9d58 100644 |
| --- a/chrome/browser/extensions/api/automation/automation_apitest.cc |
| +++ b/chrome/browser/extensions/api/automation/automation_apitest.cc |
| @@ -159,6 +159,11 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopActions) { |
| ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", "actions.html")) |
| << message_; |
| } |
| + |
| +IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopLoadTabs) { |
| + ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", "load_tabs.html")) |
| + << message_; |
| +} |
| #else |
| IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotSupported) { |
| ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", |
| @@ -336,9 +341,9 @@ class FakeAutomationInternalEnableTabFunction |
| base::Bind(&TreeSerializationState::InitializeTree0, |
| base::Unretained(&state), |
| base::Unretained(browser_context()))); |
| - return RespondNow( |
| - ArgumentList(api::automation_internal::EnableTab::Results::Create( |
| - kPid, kTab0Rid))); |
| + // TODO(dtseng): Need to rewrite this test in terms of tree ids... |
|
aboxhall
2014/11/03 17:15:48
You can assign this TODO to me if you like!
David Tseng
2014/11/03 19:31:52
Done.
|
| + return RespondNow(ArgumentList( |
| + api::automation_internal::EnableTab::Results::Create(0))); |
| } |
| if (tab_id == 1) { |
| // tab 1 <--> tree1 |
| @@ -347,9 +352,8 @@ class FakeAutomationInternalEnableTabFunction |
| base::Bind(&TreeSerializationState::InitializeTree1, |
| base::Unretained(&state), |
| base::Unretained(browser_context()))); |
| - return RespondNow( |
| - ArgumentList(api::automation_internal::EnableTab::Results::Create( |
| - kPid, kTab1Rid))); |
| + return RespondNow(ArgumentList( |
| + api::automation_internal::EnableTab::Results::Create(0))); |
| } |
| return RespondNow(Error("Unrecognised tab_id")); |
| } |