| Index: net/socket/socket_test_util.h
|
| diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
|
| index 1a0ab1157cfd5578ba753e1905f4bbd915345579..0ccf8780f7c4581b73a79f26603a0fc32dc92b16 100644
|
| --- a/net/socket/socket_test_util.h
|
| +++ b/net/socket/socket_test_util.h
|
| @@ -695,46 +695,6 @@ class MockSOCKSClientSocketPool : public SOCKSClientSocketPool {
|
| DISALLOW_COPY_AND_ASSIGN(MockSOCKSClientSocketPool);
|
| };
|
|
|
| -struct MockHttpAuthControllerData {
|
| - explicit MockHttpAuthControllerData(std::string header)
|
| - : auth_header(header) {}
|
| -
|
| - std::string auth_header;
|
| -};
|
| -
|
| -class MockHttpAuthController : public HttpAuthController {
|
| - public:
|
| - MockHttpAuthController();
|
| - void SetMockAuthControllerData(struct MockHttpAuthControllerData* data,
|
| - size_t data_length);
|
| -
|
| - // HttpAuthController methods.
|
| - virtual int MaybeGenerateAuthToken(const HttpRequestInfo* request,
|
| - CompletionCallback* callback,
|
| - const BoundNetLog& net_log);
|
| - virtual void AddAuthorizationHeader(
|
| - HttpRequestHeaders* authorization_headers);
|
| - virtual int HandleAuthChallenge(scoped_refptr<HttpResponseHeaders> headers,
|
| - bool do_not_send_server_auth,
|
| - bool establishing_tunnel,
|
| - const BoundNetLog& net_log);
|
| - virtual void ResetAuth(const string16& username,
|
| - const string16& password);
|
| - virtual bool HaveAuthHandler() const;
|
| - virtual bool HaveAuth() const;
|
| -
|
| - private:
|
| - virtual ~MockHttpAuthController() {}
|
| - const struct MockHttpAuthControllerData& CurrentData() const {
|
| - DCHECK(data_index_ < data_count_);
|
| - return data_[data_index_];
|
| - }
|
| -
|
| - MockHttpAuthControllerData* data_;
|
| - size_t data_index_;
|
| - size_t data_count_;
|
| -};
|
| -
|
| // Constants for a successful SOCKS v5 handshake.
|
| extern const char kSOCKS5GreetRequest[];
|
| extern const int kSOCKS5GreetRequestLength;
|
|
|