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

Unified Diff: chrome/browser/ui/find_bar/find_backend_unittest.cc

Issue 10542010: TabContentsWrapper -> TabContents, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, rename 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/ui/find_bar/find_backend_unittest.cc
diff --git a/chrome/browser/ui/find_bar/find_backend_unittest.cc b/chrome/browser/ui/find_bar/find_backend_unittest.cc
index 15f78d1b2ec9364a48f5f0443f34a1130f47e44d..9d5488e13b1484cf3e877affa60e4bf17290f0b3 100644
--- a/chrome/browser/ui/find_bar/find_backend_unittest.cc
+++ b/chrome/browser/ui/find_bar/find_backend_unittest.cc
@@ -9,7 +9,7 @@
#include "chrome/browser/ui/find_bar/find_bar_state_factory.h"
#include "chrome/browser/ui/find_bar/find_tab_helper.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
-#include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/test_tab_contents.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/web_contents.h"
@@ -20,10 +20,10 @@ using content::BrowserThread;
using content::WebContents;
using content::WebContentsTester;
-class FindBackendTest : public TabContentsWrapperTestHarness {
+class FindBackendTest : public TabContentsTestHarness {
public:
FindBackendTest()
- : TabContentsWrapperTestHarness(),
+ : TabContentsTestHarness(),
browser_thread_(BrowserThread::UI, &message_loop_) {}
private:
@@ -42,7 +42,7 @@ string16 FindPrepopulateText(WebContents* contents) {
// This test takes two WebContents objects, searches in both of them and
// tests the internal state for find_text and find_prepopulate_text.
TEST_F(FindBackendTest, InternalState) {
- FindTabHelper* find_tab_helper = contents_wrapper()->find_tab_helper();
+ FindTabHelper* find_tab_helper = tab_contents()->find_tab_helper();
// Initial state for the WebContents is blank strings.
EXPECT_EQ(string16(), FindPrepopulateText(contents()));
EXPECT_EQ(string16(), find_tab_helper->find_text());

Powered by Google App Engine
This is Rietveld 408576698