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

Unified Diff: chrome/browser/autocomplete/history_quick_provider_unittest.cc

Issue 388203002: Remove listener_ from AutocompleteProvider base class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/autocomplete/history_quick_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider_unittest.cc b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
index 4174aa2878e201fe696536ea04ca99db62cf653c..a51877c78aa2ddc0c066e6ed2831658a9387d8aa 100644
--- a/chrome/browser/autocomplete/history_quick_provider_unittest.cc
+++ b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
@@ -17,7 +17,6 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
-#include "chrome/browser/autocomplete/autocomplete_provider_listener.h"
#include "chrome/browser/autocomplete/autocomplete_result.h"
#include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
@@ -106,16 +105,12 @@ struct TestURLInfo {
"83.A6.E4.BD.93.E5.88.B6", "Title Unimportant", 2, 2, 0}
};
-class HistoryQuickProviderTest : public testing::Test,
- public AutocompleteProviderListener {
+class HistoryQuickProviderTest : public testing::Test {
public:
HistoryQuickProviderTest()
: ui_thread_(BrowserThread::UI, &message_loop_),
file_thread_(BrowserThread::FILE, &message_loop_) {}
- // AutocompleteProviderListener:
- virtual void OnProviderUpdate(bool updated_matches) OVERRIDE {}
-
protected:
class SetShouldContain : public std::unary_function<const std::string&,
std::set<std::string> > {
@@ -194,7 +189,7 @@ void HistoryQuickProviderTest::SetUp() {
HistoryServiceFactory::GetForProfile(profile_.get(),
Profile::EXPLICIT_ACCESS);
EXPECT_TRUE(history_service_);
- provider_ = new HistoryQuickProvider(this, profile_.get());
+ provider_ = new HistoryQuickProvider(profile_.get());
TemplateURLServiceFactory::GetInstance()->SetTestingFactoryAndUse(
profile_.get(), &HistoryQuickProviderTest::CreateTemplateURLService);
FillData();
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | chrome/browser/autocomplete/history_url_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698