Commit 3607b2f5 authored by Sergio Villar Senin's avatar Sergio Villar Senin Committed by Commit Bot

Cleanup io_thread_browsertest.cc

There was some leftover code from https://crrev.com/c/1143261

BUG=865350

Change-Id: Ibe6561d4da605b4b8802e8f3862a023155c4f051
Reviewed-on: https://chromium-review.googlesource.com/1175122Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Sergio Villar <svillar@igalia.com>
Cr-Commit-Position: refs/heads/master@{#584012}
parent 19814592
......@@ -33,8 +33,6 @@
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/simple_connection_listener.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_context.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "testing/gtest/include/gtest/gtest.h"
......@@ -42,24 +40,6 @@
namespace {
// URLFetcherDelegate that can wait for a request to succeed.
class TestURLFetcherDelegate : public net::URLFetcherDelegate {
public:
TestURLFetcherDelegate() {}
~TestURLFetcherDelegate() override {}
void OnURLFetchComplete(const net::URLFetcher* source) override {
run_loop_.Quit();
}
void WaitForCompletion() { run_loop_.Run(); }
private:
base::RunLoop run_loop_;
DISALLOW_COPY_AND_ASSIGN(TestURLFetcherDelegate);
};
// Runs a task on the IOThread and waits for it to complete.
void RunOnIOThreadBlocking(base::OnceClosure task) {
base::RunLoop run_loop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment