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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_api_unittest.cc

Issue 2502063002: [Extensions] Add missing include (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/strings/stringprintf.h" 5 #include "base/strings/stringprintf.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/browser/extensions/api/tabs/tabs_api.h" 7 #include "chrome/browser/extensions/api/tabs/tabs_api.h"
8 #include "chrome/browser/extensions/extension_function_test_utils.h" 8 #include "chrome/browser/extensions/extension_function_test_utils.h"
9 #include "chrome/browser/extensions/extension_service_test_base.h" 9 #include "chrome/browser/extensions/extension_service_test_base.h"
10 #include "chrome/browser/extensions/extension_tab_util.h" 10 #include "chrome/browser/extensions/extension_tab_util.h"
11 #include "chrome/browser/sessions/session_tab_helper.h" 11 #include "chrome/browser/sessions/session_tab_helper.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" 13 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 #include "chrome/test/base/test_browser_window.h" 14 #include "chrome/test/base/test_browser_window.h"
15 #include "content/public/browser/navigation_entry.h" 15 #include "content/public/browser/navigation_entry.h"
16 #include "content/public/common/browser_side_navigation_policy.h" 16 #include "content/public/common/browser_side_navigation_policy.h"
17 #include "content/public/test/browser_side_navigation_test_utils.h" 17 #include "content/public/test/browser_side_navigation_test_utils.h"
18 #include "content/public/test/web_contents_tester.h" 18 #include "content/public/test/web_contents_tester.h"
19 #include "extensions/browser/api_test_utils.h" 19 #include "extensions/browser/api_test_utils.h"
20 #include "extensions/common/constants.h"
20 #include "extensions/common/extension_builder.h" 21 #include "extensions/common/extension_builder.h"
21 #include "extensions/common/test_util.h" 22 #include "extensions/common/test_util.h"
22 23
23 namespace extensions { 24 namespace extensions {
24 25
25 namespace { 26 namespace {
26 27
27 std::unique_ptr<base::ListValue> RunTabsQueryFunction( 28 std::unique_ptr<base::ListValue> RunTabsQueryFunction(
28 Browser* browser, 29 Browser* browser,
29 const Extension* extension, 30 const Extension* extension,
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 EXPECT_EQ(kGoogle, web_contents->GetVisibleURL()); 264 EXPECT_EQ(kGoogle, web_contents->GetVisibleURL());
264 265
265 // Clean up. 266 // Clean up.
266 response_helper.WaitForResponse(); 267 response_helper.WaitForResponse();
267 while (!browser()->tab_strip_model()->empty()) 268 while (!browser()->tab_strip_model()->empty())
268 browser()->tab_strip_model()->CloseWebContentsAt(0, 0); 269 browser()->tab_strip_model()->CloseWebContentsAt(0, 0);
269 base::RunLoop().RunUntilIdle(); 270 base::RunLoop().RunUntilIdle();
270 } 271 }
271 272
272 } // namespace extensions 273 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698