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

Side by Side Diff: chrome/browser/ui/find_bar/find_backend_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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/string16.h" 5 #include "base/string16.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/ui/find_bar/find_bar_state.h" 8 #include "chrome/browser/ui/find_bar/find_bar_state.h"
9 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 9 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
11 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h"
12 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
13 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
14 #include "content/browser/tab_contents/test_tab_contents.h" 14 #include "content/browser/tab_contents/test_tab_contents.h"
15 #include "content/test/test_browser_thread.h" 15 #include "content/test/test_browser_thread.h"
16 16
17 using content::BrowserThread;
18
17 class FindBackendTest : public TabContentsWrapperTestHarness { 19 class FindBackendTest : public TabContentsWrapperTestHarness {
18 public: 20 public:
19 FindBackendTest() 21 FindBackendTest()
20 : TabContentsWrapperTestHarness(), 22 : TabContentsWrapperTestHarness(),
21 browser_thread_(BrowserThread::UI, &message_loop_) {} 23 browser_thread_(BrowserThread::UI, &message_loop_) {}
22 24
23 private: 25 private:
24 content::TestBrowserThread browser_thread_; 26 content::TestBrowserThread browser_thread_;
25 }; 27 };
26 28
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // find_tab_helper (as indicated by the last two params). 84 // find_tab_helper (as indicated by the last two params).
83 find_tab_helper->StartFinding(search_term3, true, false); 85 find_tab_helper->StartFinding(search_term3, true, false);
84 86
85 // Once more, pre-populate string should always match between the two, but 87 // Once more, pre-populate string should always match between the two, but
86 // find_text should not. 88 // find_text should not.
87 EXPECT_EQ(search_term3, FindPrepopulateText(contents())); 89 EXPECT_EQ(search_term3, FindPrepopulateText(contents()));
88 EXPECT_EQ(search_term3, find_tab_helper->find_text()); 90 EXPECT_EQ(search_term3, find_tab_helper->find_text());
89 EXPECT_EQ(search_term3, FindPrepopulateText(contents2)); 91 EXPECT_EQ(search_term3, FindPrepopulateText(contents2));
90 EXPECT_EQ(search_term2, find_tab_helper2->find_text()); 92 EXPECT_EQ(search_term2, find_tab_helper2->find_text());
91 } 93 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/crypto_module_password_dialog_nss.cc ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698