Suppression for crbug/241044.
[chromium-blink-merge.git] / chrome / test / chromedriver / net / net_util.h
blob723e748730b326fcddd60214bdd3ca091bf1053e
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_CHROMEDRIVER_NET_NET_UTIL_H_
6 #define CHROME_TEST_CHROMEDRIVER_NET_NET_UTIL_H_
8 #include <string>
10 class URLRequestContextGetter;
12 // Synchronously fetches data from a GET HTTP request to the given URL.
13 // Returns true if response is 200 OK and sets response body to |response|.
14 bool FetchUrl(const std::string& url,
15 URLRequestContextGetter* getter,
16 std::string* response);
18 // Finds an open port and returns true on success.
19 bool FindOpenPort(int* port);
21 #endif // CHROME_TEST_CHROMEDRIVER_NET_NET_UTIL_H_