| Index: chrome/browser/extensions/api/tabs/tabs_interactive_test.cc
|
| diff --git a/chrome/browser/extensions/api/tabs/tabs_interactive_test.cc b/chrome/browser/extensions/api/tabs/tabs_interactive_test.cc
|
| index c5a0dd58bc84c2efde88f4557813194dde989bb6..c18a161e1a16ff5c8e1dfa73b933642ad8facce7 100644
|
| --- a/chrome/browser/extensions/api/tabs/tabs_interactive_test.cc
|
| +++ b/chrome/browser/extensions/api/tabs/tabs_interactive_test.cc
|
| @@ -2,17 +2,16 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/extensions/api/tabs/tabs.h"
|
| -
|
| #include "base/values.h"
|
| +#include "chrome/browser/extensions/api/tabs/tabs_api.h"
|
| #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
|
| #include "chrome/browser/extensions/extension_apitest.h"
|
| #include "chrome/browser/extensions/extension_function_test_utils.h"
|
| #include "chrome/browser/extensions/extension_tab_util.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| -#include "chrome/test/base/interactive_test_utils.h"
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| +#include "chrome/test/base/interactive_test_utils.h"
|
| #include "chrome/test/base/ui_test_utils.h"
|
|
|
| namespace keys = extensions::tabs_constants;
|
| @@ -32,8 +31,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionTabsTest, MAYBE_GetLastFocusedWindow) {
|
| Browser* new_browser = CreateBrowser(browser()->profile());
|
| int focused_window_id = ExtensionTabUtil::GetWindowId(new_browser);
|
|
|
| - scoped_refptr<GetLastFocusedWindowFunction> function =
|
| - new GetLastFocusedWindowFunction();
|
| + scoped_refptr<WindowsGetLastFocusedFunction> function =
|
| + new WindowsGetLastFocusedFunction();
|
| scoped_refptr<extensions::Extension> extension(utils::CreateEmptyExtension());
|
| function->set_extension(extension.get());
|
| scoped_ptr<base::DictionaryValue> result(utils::ToDictionary(
|
| @@ -47,7 +46,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionTabsTest, MAYBE_GetLastFocusedWindow) {
|
| ListValue* tabs = NULL;
|
| EXPECT_FALSE(result.get()->GetList(keys::kTabsKey, &tabs));
|
|
|
| - function = new GetLastFocusedWindowFunction();
|
| + function = new WindowsGetLastFocusedFunction();
|
| function->set_extension(extension.get());
|
| result.reset(utils::ToDictionary(
|
| utils::RunFunctionAndReturnSingleResult(function.get(),
|
| @@ -83,7 +82,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionTabsTest, DISABLED_QueryLastFocusedWindowTabs) {
|
| int focused_window_id = ExtensionTabUtil::GetWindowId(focused_window);
|
|
|
| // Get tabs in the 'last focused' window called from non-focused browser.
|
| - scoped_refptr<QueryTabsFunction> function = new QueryTabsFunction();
|
| + scoped_refptr<TabsQueryFunction> function = new TabsQueryFunction();
|
| scoped_ptr<base::ListValue> result(utils::ToList(
|
| utils::RunFunctionAndReturnSingleResult(function.get(),
|
| "[{\"lastFocusedWindow\":true}]",
|
| @@ -100,7 +99,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionTabsTest, DISABLED_QueryLastFocusedWindowTabs) {
|
| }
|
|
|
| // Get tabs NOT in the 'last focused' window called from the focused browser.
|
| - function = new QueryTabsFunction();
|
| + function = new TabsQueryFunction();
|
| result.reset(utils::ToList(
|
| utils::RunFunctionAndReturnSingleResult(function.get(),
|
| "[{\"lastFocusedWindow\":false}]",
|
|
|