| 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 <errno.h> | 5 #include <errno.h> |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/message_loop.h" |
| 9 #include "chrome/browser/chromeos/login/client_login_response_handler.h" | 10 #include "chrome/browser/chromeos/login/client_login_response_handler.h" |
| 10 #include "chrome/browser/chromeos/login/cookie_fetcher.h" | 11 #include "chrome/browser/chromeos/login/cookie_fetcher.h" |
| 11 #include "chrome/browser/chromeos/login/issue_response_handler.h" | 12 #include "chrome/browser/chromeos/login/issue_response_handler.h" |
| 12 #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" | 13 #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" |
| 13 #include "chrome/common/net/gaia/gaia_urls.h" | 14 #include "chrome/common/net/gaia/gaia_urls.h" |
| 14 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
| 15 #include "content/public/common/url_fetcher.h" | 16 #include "content/public/common/url_fetcher.h" |
| 16 #include "content/test/test_browser_thread.h" | 17 #include "content/test/test_browser_thread.h" |
| 17 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 18 #include "net/url_request/url_request_status.h" | 19 #include "net/url_request/url_request_status.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 IssueResponseHandler handler(NULL); | 187 IssueResponseHandler handler(NULL); |
| 187 std::string expected(IssueResponseHandler::BuildTokenAuthUrlWithToken( | 188 std::string expected(IssueResponseHandler::BuildTokenAuthUrlWithToken( |
| 188 std::string("a\n"))); | 189 std::string("a\n"))); |
| 189 | 190 |
| 190 scoped_ptr<content::URLFetcher> fetcher( | 191 scoped_ptr<content::URLFetcher> fetcher( |
| 191 handler.Handle(std::string("a\n"), NULL)); | 192 handler.Handle(std::string("a\n"), NULL)); |
| 192 EXPECT_EQ(expected, handler.token_url()); | 193 EXPECT_EQ(expected, handler.token_url()); |
| 193 } | 194 } |
| 194 | 195 |
| 195 } // namespace chromeos | 196 } // namespace chromeos |
| OLD | NEW |