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

Unified Diff: chrome/browser/download/download_request_limiter_unittest.cc

Issue 10545064: TabContentsWrapper -> TabContents, part 11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
Index: chrome/browser/download/download_request_limiter_unittest.cc
diff --git a/chrome/browser/download/download_request_limiter_unittest.cc b/chrome/browser/download/download_request_limiter_unittest.cc
index 707994727b4aa6cb9ec345e12786b1b549dc1950..3dd27242cad132f762aa1509b7fbac914caf4cfb 100644
--- a/chrome/browser/download/download_request_limiter_unittest.cc
+++ b/chrome/browser/download/download_request_limiter_unittest.cc
@@ -4,7 +4,7 @@
#include "base/bind.h"
#include "chrome/browser/download/download_request_limiter.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tab_contents/test_tab_contents.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/navigation_controller.h"
@@ -236,11 +236,11 @@ TEST_F(DownloadRequestLimiterTest,
DownloadRequestLimiter_RawWebContents) {
// By-pass TabContentsTestHarness and use
// RenderViewHostTestHarness::CreateTestWebContents() directly so that there
- // will be no TabContentsWrapper for web_contents.
+ // will be no TabContents for web_contents.
scoped_ptr<WebContents> web_contents(CreateTestWebContents());
- TabContentsWrapper* tab_wrapper =
- TabContentsWrapper::GetCurrentWrapperForContents(web_contents.get());
- ASSERT_TRUE(tab_wrapper == NULL);
+ TabContents* tab_contents =
+ TabContents::GetOwningTabContentsForWebContents(web_contents.get());
+ ASSERT_TRUE(tab_contents == NULL);
// DRL won't try to make an infobar if it doesn't have a TCW, and we want to
// test that it will Cancel() instead of prompting when it doesn't have a TCW,
// so unset the delegate.
« no previous file with comments | « chrome/browser/download/download_request_limiter.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698