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

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

Issue 7633029: Remove extension.h #include from profile.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit_tests. Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/extensions/extension_process_manager.h" 8 #include "chrome/browser/extensions/extension_process_manager.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_list.h" 11 #include "chrome/browser/ui/browser_list.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/extensions/extension.h"
asargent_no_longer_on_chrome 2011/08/12 21:00:41 "Include what you use, yo!"
13 #include "chrome/test/base/ui_test_utils.h" 14 #include "chrome/test/base/ui_test_utils.h"
14 #include "content/browser/renderer_host/render_view_host.h" 15 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
16 #include "net/base/mock_host_resolver.h" 17 #include "net/base/mock_host_resolver.h"
17 18
18 class AppApiTest : public ExtensionApiTest { 19 class AppApiTest : public ExtensionApiTest {
19 protected: 20 protected:
20 // Gets the base URL for files for a specific test, making sure that it uses 21 // Gets the base URL for files for a specific test, making sure that it uses
21 // "localhost" as the hostname, since that is what the extent is declared 22 // "localhost" as the hostname, since that is what the extent is declared
22 // as in the test apps manifests. 23 // as in the test apps manifests.
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Crash the tab and reload it, chrome.app.isInstalled should still be true. 362 // Crash the tab and reload it, chrome.app.isInstalled should still be true.
362 ui_test_utils::CrashTab(browser()->GetSelectedTabContents()); 363 ui_test_utils::CrashTab(browser()->GetSelectedTabContents());
363 browser()->Reload(CURRENT_TAB); 364 browser()->Reload(CURRENT_TAB);
364 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); 365 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser()));
365 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool( 366 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
366 contents->render_view_host(), L"", 367 contents->render_view_host(), L"",
367 L"window.domAutomationController.send(chrome.app.isInstalled)", 368 L"window.domAutomationController.send(chrome.app.isInstalled)",
368 &is_installed)); 369 &is_installed));
369 ASSERT_TRUE(is_installed); 370 ASSERT_TRUE(is_installed);
370 } 371 }
OLDNEW
« no previous file with comments | « chrome/browser/background/background_contents_service.cc ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698