summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/net/proxy_test_utils.h
blob: 22ac775495a0d54bc882c8b85a5102351f7c49af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_NET_PROXY_TEST_UTILS_H_
#define CHROME_BROWSER_NET_PROXY_TEST_UTILS_H_

#include "chrome/test/base/in_process_browser_test.h"
#include "net/test/spawned_test_server/spawned_test_server.h"

namespace content {
class URLLoaderInterceptor;
}

class ProxyBrowserTest : public InProcessBrowserTest {
 public:
  ProxyBrowserTest();
  ~ProxyBrowserTest() override;

  // InProcessBrowserTest::
  void SetUp() override;
  void PostRunTestOnMainThread() override;
  void SetUpCommandLine(base::CommandLine* command_line) override;

 protected:
  net::SpawnedTestServer proxy_server_;

 private:
  std::unique_ptr<content::URLLoaderInterceptor> url_loader_interceptor_;
  DISALLOW_COPY_AND_ASSIGN(ProxyBrowserTest);
};

#endif  // CHROME_BROWSER_NET_PROXY_TEST_UTILS_H_