| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/net/gaia/gaia_authenticator.h" | 5 #include "google_apis/gaia/gaia_authenticator.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "net/http/http_status_code.h" | 10 #include "net/http/http_status_code.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 using std::string; | 13 using std::string; |
| 14 | 14 |
| 15 namespace gaia { | 15 namespace gaia { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 40 GaiaAuthMockForGaiaAuthenticator mock_auth; | 40 GaiaAuthMockForGaiaAuthenticator mock_auth; |
| 41 MessageLoop message_loop; | 41 MessageLoop message_loop; |
| 42 mock_auth.set_message_loop(&message_loop); | 42 mock_auth.set_message_loop(&message_loop); |
| 43 GaiaAuthenticator::AuthResults results; | 43 GaiaAuthenticator::AuthResults results; |
| 44 EXPECT_TRUE(mock_auth.IssueAuthToken(&results, "sid")); | 44 EXPECT_TRUE(mock_auth.IssueAuthToken(&results, "sid")); |
| 45 EXPECT_EQ(0, results.auth_token.compare("body")); | 45 EXPECT_EQ(0, results.auth_token.compare("body")); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace gaia | 48 } // namespace gaia |
| 49 | 49 |
| OLD | NEW |