| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/http/mock_allow_http_auth_preferences.h" | 5 #include "net/http/mock_allow_http_auth_preferences.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 MockAllowHttpAuthPreferences::MockAllowHttpAuthPreferences() | 9 MockAllowHttpAuthPreferences::MockAllowHttpAuthPreferences() |
| 10 : HttpAuthPreferences(std::vector<std::string>() | 10 : HttpAuthPreferences(std::vector<std::string>() |
| 11 #if defined(OS_POSIX) && !defined(OS_ANDROID) | 11 #if defined(OS_POSIX) && !defined(OS_ANDROID) |
| 12 , | 12 , |
| 13 std::string() | 13 std::string() |
| 14 #endif | 14 #endif |
| 15 ) { | 15 #if defined(OS_CHROMEOS) |
| 16 , |
| 17 true |
| 18 #endif |
| 19 ) { |
| 16 } | 20 } |
| 17 | 21 |
| 18 MockAllowHttpAuthPreferences::~MockAllowHttpAuthPreferences() {} | 22 MockAllowHttpAuthPreferences::~MockAllowHttpAuthPreferences() {} |
| 19 | 23 |
| 20 bool MockAllowHttpAuthPreferences::CanUseDefaultCredentials( | 24 bool MockAllowHttpAuthPreferences::CanUseDefaultCredentials( |
| 21 const GURL& auth_origin) const { | 25 const GURL& auth_origin) const { |
| 22 return true; | 26 return true; |
| 23 } | 27 } |
| 24 | 28 |
| 25 bool MockAllowHttpAuthPreferences::CanDelegate(const GURL& auth_origin) const { | 29 bool MockAllowHttpAuthPreferences::CanDelegate(const GURL& auth_origin) const { |
| 26 return true; | 30 return true; |
| 27 } | 31 } |
| 28 | 32 |
| 29 } // namespace net | 33 } // namespace net |
| OLD | NEW |