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

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

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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: trunk/src/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc
===================================================================
--- trunk/src/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc (revision 219785)
+++ trunk/src/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc (working copy)
@@ -15,7 +15,6 @@
#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 "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -208,23 +207,34 @@
};
class SuggestionsCombinerTest : public testing::Test {
+ public:
+ SuggestionsCombinerTest() {
+ }
+
protected:
+ Profile* profile_;
+ SuggestionsHandler* suggestions_handler_;
+ SuggestionsCombiner* combiner_;
+
+ void Reset() {
+ delete combiner_;
+ combiner_ = new SuggestionsCombiner(suggestions_handler_, profile_);
+ }
+
+ private:
virtual void SetUp() {
- thread_bundle_.reset(new content::TestBrowserThreadBundle());
- profile_.reset(new TestingProfile());
- suggestions_handler_.reset(new SuggestionsHandler());
- Reset();
+ profile_ = new TestingProfile();
+ suggestions_handler_ = new SuggestionsHandler();
+ combiner_ = new SuggestionsCombiner(suggestions_handler_, profile_);
}
- void Reset() {
- combiner_.reset(
- new SuggestionsCombiner(suggestions_handler_.get(), profile_.get()));
+ virtual void TearDown() {
+ delete combiner_;
+ delete suggestions_handler_;
+ delete profile_;
}
- scoped_ptr<content::TestBrowserThreadBundle> thread_bundle_;
- scoped_ptr<Profile> profile_;
- scoped_ptr<SuggestionsHandler> suggestions_handler_;
- scoped_ptr<SuggestionsCombiner> combiner_;
+ DISALLOW_COPY_AND_ASSIGN(SuggestionsCombinerTest);
};
TEST_F(SuggestionsCombinerTest, NoSource) {
« no previous file with comments | « trunk/src/chrome/browser/ui/webui/net_internals/net_internals_ui.cc ('k') | trunk/src/chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698