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

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

Issue 198703006: Move ExtensionHost from src/chrome to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/automation/automation_util.h" 7 #include "chrome/browser/automation/automation_util.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 8 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_host.h"
10 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_commands.h" 12 #include "chrome/browser/ui/browser_commands.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 13 #include "chrome/browser/ui/tabs/tab_strip_model.h"
15 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
16 #include "chrome/test/base/ui_test_utils.h" 15 #include "chrome/test/base/ui_test_utils.h"
17 #include "content/public/browser/render_process_host.h" 16 #include "content/public/browser/render_process_host.h"
18 #include "content/public/browser/render_view_host.h" 17 #include "content/public/browser/render_view_host.h"
19 #include "content/public/browser/site_instance.h" 18 #include "content/public/browser/site_instance.h"
20 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
21 #include "content/public/test/browser_test_utils.h" 20 #include "content/public/test/browser_test_utils.h"
21 #include "extensions/browser/extension_host.h"
22 #include "extensions/browser/process_map.h" 22 #include "extensions/browser/process_map.h"
23 #include "extensions/common/switches.h" 23 #include "extensions/common/switches.h"
24 #include "net/dns/mock_host_resolver.h" 24 #include "net/dns/mock_host_resolver.h"
25 #include "net/test/embedded_test_server/embedded_test_server.h" 25 #include "net/test/embedded_test_server/embedded_test_server.h"
26 #include "net/test/embedded_test_server/http_request.h"
26 #include "net/test/embedded_test_server/http_response.h" 27 #include "net/test/embedded_test_server/http_response.h"
27 #include "net/test/embedded_test_server/http_request.h"
28 28
29 using content::ExecuteScript; 29 using content::ExecuteScript;
30 using content::ExecuteScriptAndExtractString; 30 using content::ExecuteScriptAndExtractString;
31 using content::NavigationController; 31 using content::NavigationController;
32 using content::WebContents; 32 using content::WebContents;
33 using content::RenderViewHost; 33 using content::RenderViewHost;
34 34
35 namespace { 35 namespace {
36 36
37 std::string WrapForJavascriptAndExtract(const char* javascript_expression) { 37 std::string WrapForJavascriptAndExtract(const char* javascript_expression) {
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 EXPECT_EQ("ss_app2", result); 589 EXPECT_EQ("ss_app2", result);
590 590
591 ui_test_utils::NavigateToURLWithDisposition( 591 ui_test_utils::NavigateToURLWithDisposition(
592 browser(), base_url.Resolve("non_app/main.html"), 592 browser(), base_url.Resolve("non_app/main.html"),
593 CURRENT_TAB, ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); 593 CURRENT_TAB, ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
594 ASSERT_TRUE(ExecuteScriptAndExtractString( 594 ASSERT_TRUE(ExecuteScriptAndExtractString(
595 browser()->tab_strip_model()->GetWebContentsAt(0), 595 browser()->tab_strip_model()->GetWebContentsAt(0),
596 kRetrieveSessionStorage.c_str(), &result)); 596 kRetrieveSessionStorage.c_str(), &result));
597 EXPECT_EQ("ss_normal", result); 597 EXPECT_EQ("ss_normal", result);
598 } 598 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/gtalk_extension_browsertest.cc ('k') | chrome/browser/extensions/lazy_background_page_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698