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

Unified Diff: components/search_engines/template_url_fetcher_unittest.cc

Issue 1431653003: Migrating tests to use EmbeddedTestServer (misc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing tests. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/search_engines/template_url_fetcher_unittest.cc
diff --git a/components/search_engines/template_url_fetcher_unittest.cc b/components/search_engines/template_url_fetcher_unittest.cc
index 005deff4a18088e2a43f1db6e967c82fc8935622..d0ddf9ad36ba04da25abae30f14ab4a9605177f3 100644
--- a/components/search_engines/template_url_fetcher_unittest.cc
+++ b/components/search_engines/template_url_fetcher_unittest.cc
@@ -33,7 +33,7 @@ class TemplateURLFetcherTest : public testing::Test {
template_url_fetcher_.reset(new TemplateURLFetcher(
test_util_.model(), profile->GetRequestContext()));
- ASSERT_TRUE(test_server_.InitializeAndWaitUntilReady());
+ ASSERT_TRUE(test_server_.Start());
}
void TearDown() override {
@@ -72,7 +72,7 @@ class TemplateURLFetcherTest : public testing::Test {
content::TestBrowserThreadBundle thread_bundle_; // To set up BrowserThreads.
TemplateURLServiceTestUtil test_util_;
scoped_ptr<TemplateURLFetcher> template_url_fetcher_;
- net::test_server::EmbeddedTestServer test_server_;
+ net::EmbeddedTestServer test_server_;
// The last TemplateURL to come from a callback.
scoped_ptr<TemplateURL> last_callback_template_url_;

Powered by Google App Engine
This is Rietveld 408576698