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

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

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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 | 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/process_util.h" 5 #include "base/process_util.h"
6 #include "chrome/browser/browser_process.h" 6 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/extensions/extension_browsertest.h" 7 #include "chrome/browser/extensions/extension_browsertest.h"
8 #include "chrome/browser/extensions/extension_host.h" 8 #include "chrome/browser/extensions/extension_host.h"
9 #include "chrome/browser/extensions/extension_process_manager.h" 9 #include "chrome/browser/extensions/extension_process_manager.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/notifications/balloon_host.h" 11 #include "chrome/browser/notifications/balloon_host.h"
12 #include "chrome/browser/notifications/notification.h" 12 #include "chrome/browser/notifications/notification.h"
13 #include "chrome/browser/notifications/notification_delegate.h" 13 #include "chrome/browser/notifications/notification_delegate.h"
14 #include "chrome/browser/notifications/notification_ui_manager.h" 14 #include "chrome/browser/notifications/notification_ui_manager.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/tabs/tab_strip_model.h" 16 #include "chrome/browser/tabs/tab_strip_model.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
19 #include "chrome/test/base/ui_test_utils.h" 19 #include "chrome/test/base/ui_test_utils.h"
20 #include "content/browser/renderer_host/render_view_host.h" 20 #include "content/browser/renderer_host/render_view_host.h"
21 #include "content/browser/tab_contents/navigation_controller.h" 21 #include "content/public/browser/navigation_controller.h"
22 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
23 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
24 #include "content/public/common/result_codes.h" 24 #include "content/public/common/result_codes.h"
25 25
26 using content::WebContents; 26 using content::WebContents;
27 27
28 class ExtensionCrashRecoveryTest : public ExtensionBrowserTest { 28 class ExtensionCrashRecoveryTest : public ExtensionBrowserTest {
29 protected: 29 protected:
30 ExtensionService* GetExtensionService() { 30 ExtensionService* GetExtensionService() {
31 return browser()->profile()->GetExtensionService(); 31 return browser()->profile()->GetExtensionService();
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 GetController())); 479 GetController()));
480 browser()->Reload(CURRENT_TAB); 480 browser()->Reload(CURRENT_TAB);
481 observer.Wait(); 481 observer.Wait();
482 } 482 }
483 // Extension should now be loaded. 483 // Extension should now be loaded.
484 SCOPED_TRACE("after reloading the tab"); 484 SCOPED_TRACE("after reloading the tab");
485 CheckExtensionConsistency(first_extension_id_); 485 CheckExtensionConsistency(first_extension_id_);
486 ASSERT_EQ(size_before + 1, GetExtensionService()->extensions()->size()); 486 ASSERT_EQ(size_before + 1, GetExtensionService()->extensions()->size());
487 ASSERT_EQ(0U, CountBalloons()); 487 ASSERT_EQ(0U, CountBalloons());
488 } 488 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698