| Index: net/http/mock_allow_http_auth_preferences.cc
|
| diff --git a/net/http/mock_allow_http_auth_preferences.cc b/net/http/mock_allow_http_auth_preferences.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ee09ed5bdc2bea27fea0861ce06f988f619bb9dc
|
| --- /dev/null
|
| +++ b/net/http/mock_allow_http_auth_preferences.cc
|
| @@ -0,0 +1,37 @@
|
| +// Copyright (c) 2011 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.
|
| +
|
| +#include "net/http/mock_allow_http_auth_preferences.h"
|
| +
|
| +namespace net {
|
| +
|
| +MockAllowHttpAuthPreferences::MockAllowHttpAuthPreferences()
|
| + : disable_cname_lookup_(false), use_port_(false) {}
|
| +
|
| +MockAllowHttpAuthPreferences::~MockAllowHttpAuthPreferences() {}
|
| +
|
| +bool MockAllowHttpAuthPreferences::CanUseDefaultCredentials(
|
| + const GURL& auth_origin) const {
|
| + return true;
|
| +}
|
| +
|
| +bool MockAllowHttpAuthPreferences::CanDelegate(const GURL& auth_origin) const {
|
| + return true;
|
| +}
|
| +
|
| +bool MockAllowHttpAuthPreferences::negotiate_disable_cname_lookup() const {
|
| + return disable_cname_lookup_;
|
| +}
|
| +
|
| +bool MockAllowHttpAuthPreferences::negotiate_enable_port() const {
|
| + return use_port_;
|
| +}
|
| +#if defined(OS_ANDROID)
|
| +std::string MockAllowHttpAuthPreferences::auth_android_negotiate_account_type()
|
| + const {
|
| + return account_type_;
|
| +}
|
| +#endif
|
| +}
|
| +// namespace net
|
|
|