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

Unified Diff: chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc

Issue 10666009: Added already_open column to chrome://suggestions-internals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed unit tests 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/webui/ntp/suggestions_combiner_unittest.cc
diff --git a/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc b/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc
index ac71bb0ae6ba07c5256ec94ba94fa06c5f7f5f09..fd9b1807fc46f08f23d0b000a91a87a1ca076d7e 100644
--- a/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc
+++ b/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/webui/ntp/suggestions_combiner.h"
#include "chrome/browser/ui/webui/ntp/suggestions_page_handler.h"
#include "chrome/browser/ui/webui/ntp/suggestions_source.h"
+#include "chrome/test/base/testing_profile.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -211,23 +212,26 @@ class SuggestionsCombinerTest : public testing::Test {
}
protected:
+ Profile* profile_;
SuggestionsHandler* suggestions_handler_;
SuggestionsCombiner* combiner_;
void Reset() {
delete combiner_;
- combiner_ = new SuggestionsCombiner(suggestions_handler_);
+ combiner_ = new SuggestionsCombiner(suggestions_handler_, profile_);
}
private:
virtual void SetUp() {
+ profile_ = new TestingProfile();
suggestions_handler_ = new SuggestionsHandler();
- combiner_ = new SuggestionsCombiner(suggestions_handler_);
+ combiner_ = new SuggestionsCombiner(suggestions_handler_, profile_);
}
virtual void TearDown() {
delete combiner_;
delete suggestions_handler_;
+ delete profile_;
}
DISALLOW_COPY_AND_ASSIGN(SuggestionsCombinerTest);

Powered by Google App Engine
This is Rietveld 408576698