| 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 "chrome/browser/chromeos/login/mock_auth_response_handler.h" | 5 #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/common/net/url_fetcher.h" | 10 #include "content/common/url_fetcher.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "net/url_request/url_request_status.h" | 12 #include "net/url_request/url_request_status.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 using ::testing::_; | 17 using ::testing::_; |
| 18 using ::testing::Invoke; | 18 using ::testing::Invoke; |
| 19 | 19 |
| 20 MockAuthResponseHandler::MockAuthResponseHandler( | 20 MockAuthResponseHandler::MockAuthResponseHandler( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 NewRunnableFunction(MockAuthResponseHandler::CompleteFetch, | 56 NewRunnableFunction(MockAuthResponseHandler::CompleteFetch, |
| 57 delegate, | 57 delegate, |
| 58 remote_, | 58 remote_, |
| 59 status_, | 59 status_, |
| 60 http_response_code_, | 60 http_response_code_, |
| 61 data_)); | 61 data_)); |
| 62 return new URLFetcher(GURL(), URLFetcher::GET, delegate); | 62 return new URLFetcher(GURL(), URLFetcher::GET, delegate); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace chromeos | 65 } // namespace chromeos |
| OLD | NEW |