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

Side by Side Diff: chrome/browser/extensions/extension_loading_browsertest.cc

Issue 2533123002: Fix GN missing headers in //base (Closed)
Patch Set: remove dependency on check_gn_headers Created 3 years, 11 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file contains tests for extension loading, reloading, and 5 // This file contains tests for extension loading, reloading, and
6 // unloading behavior. 6 // unloading behavior.
7 7
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/version.h" 10 #include "base/version.h"
11 #include "base/win/windows_version.h"
12 #include "build/build_config.h" 11 #include "build/build_config.h"
13 #include "chrome/browser/extensions/devtools_util.h" 12 #include "chrome/browser/extensions/devtools_util.h"
14 #include "chrome/browser/extensions/extension_browsertest.h" 13 #include "chrome/browser/extensions/extension_browsertest.h"
15 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
16 #include "chrome/browser/extensions/test_extension_dir.h" 15 #include "chrome/browser/extensions/test_extension_dir.h"
17 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" 17 #include "chrome/browser/ui/tabs/tab_strip_model.h"
19 #include "chrome/test/base/in_process_browser_test.h" 18 #include "chrome/test/base/in_process_browser_test.h"
20 #include "chrome/test/base/ui_test_utils.h" 19 #include "chrome/test/base/ui_test_utils.h"
21 #include "content/public/browser/devtools_agent_host.h" 20 #include "content/public/browser/devtools_agent_host.h"
22 #include "content/public/test/browser_test_utils.h" 21 #include "content/public/test/browser_test_utils.h"
23 #include "extensions/browser/extension_registry.h" 22 #include "extensions/browser/extension_registry.h"
24 #include "extensions/browser/process_manager.h" 23 #include "extensions/browser/process_manager.h"
25 #include "extensions/test/extension_test_message_listener.h" 24 #include "extensions/test/extension_test_message_listener.h"
26 #include "net/test/embedded_test_server/embedded_test_server.h" 25 #include "net/test/embedded_test_server/embedded_test_server.h"
27 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
28 27
28 #if defined(OS_WIN)
29 #include "base/win/windows_version.h"
30 #endif
31
29 namespace extensions { 32 namespace extensions {
30 namespace { 33 namespace {
31 34
32 class ExtensionLoadingTest : public ExtensionBrowserTest { 35 class ExtensionLoadingTest : public ExtensionBrowserTest {
33 }; 36 };
34 37
35 // Check the fix for http://crbug.com/178542. 38 // Check the fix for http://crbug.com/178542.
36 IN_PROC_BROWSER_TEST_F(ExtensionLoadingTest, 39 IN_PROC_BROWSER_TEST_F(ExtensionLoadingTest,
37 UpgradeAfterNavigatingFromOverriddenNewTabPage) { 40 UpgradeAfterNavigatingFromOverriddenNewTabPage) {
38 embedded_test_server()->ServeFilesFromDirectory( 41 embedded_test_server()->ServeFilesFromDirectory(
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 230
228 // Now check whether the extension runtime is valid (see kTargetJs). 231 // Now check whether the extension runtime is valid (see kTargetJs).
229 bool is_valid = false; 232 bool is_valid = false;
230 ASSERT_TRUE(content::ExecuteScriptAndExtractBool( 233 ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
231 bg_contents, "domAutomationController.send(is_valid);", &is_valid)); 234 bg_contents, "domAutomationController.send(is_valid);", &is_valid));
232 EXPECT_TRUE(is_valid); 235 EXPECT_TRUE(is_valid);
233 } 236 }
234 237
235 } // namespace 238 } // namespace
236 } // namespace extensions 239 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698