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

Unified Diff: chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc

Issue 11189026: Remove TabContents from geolocation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc
diff --git a/chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc b/chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc
index 1c507f7996b5912156ad7ed84521af66e9cbc2c4..48515b50f6ec0cf20b858b0810cceceda8077214 100644
--- a/chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc
+++ b/chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc
@@ -4,14 +4,16 @@
#include "base/synchronization/waitable_event.h"
#include "chrome/browser/geolocation/geolocation_infobar_queue_controller.h"
-#include "chrome/browser/ui/tab_contents/test_tab_contents.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
+#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
-class GeolocationInfoBarQueueControllerTests : public TabContentsTestHarness {
+class GeolocationInfoBarQueueControllerTests
+ : public ChromeRenderViewHostTestHarness {
public:
GeolocationInfoBarQueueControllerTests();
@@ -20,6 +22,9 @@ class GeolocationInfoBarQueueControllerTests : public TabContentsTestHarness {
int RenderId();
private:
+ // ChromeRenderViewHostTestHarness:
+ virtual void SetUp() OVERRIDE;
+
content::TestBrowserThread ui_thread_;
DISALLOW_COPY_AND_ASSIGN(GeolocationInfoBarQueueControllerTests);
@@ -37,6 +42,11 @@ int GeolocationInfoBarQueueControllerTests::RenderId() {
return contents()->GetRenderViewHost()->GetRoutingID();
}
+void GeolocationInfoBarQueueControllerTests::SetUp() {
+ ChromeRenderViewHostTestHarness::SetUp();
+ InfoBarTabHelper::CreateForWebContents(web_contents());
+}
+
class ObservationCountingQueueController :
public GeolocationInfoBarQueueController {
public:
« no previous file with comments | « chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698