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/google_authenticator.h" | 5 #include "chrome/browser/chromeos/login/google_authenticator.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" | 22 #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" |
23 #include "chrome/browser/chromeos/login/mock_login_status_consumer.h" | 23 #include "chrome/browser/chromeos/login/mock_login_status_consumer.h" |
24 #include "chrome/browser/chromeos/login/mock_url_fetchers.h" | 24 #include "chrome/browser/chromeos/login/mock_url_fetchers.h" |
25 #include "chrome/browser/chromeos/login/mock_user_manager.h" | 25 #include "chrome/browser/chromeos/login/mock_user_manager.h" |
26 #include "chrome/browser/chromeos/login/user_manager.h" | 26 #include "chrome/browser/chromeos/login/user_manager.h" |
27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
28 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h" | 28 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h" |
29 #include "chrome/common/net/gaia/gaia_urls.h" | 29 #include "chrome/common/net/gaia/gaia_urls.h" |
30 #include "chrome/test/base/testing_profile.h" | 30 #include "chrome/test/base/testing_profile.h" |
31 #include "content/browser/browser_thread.h" | 31 #include "content/browser/browser_thread.h" |
32 #include "content/common/net/url_fetcher.h" | |
33 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
34 #include "net/base/net_errors.h" | 33 #include "net/base/net_errors.h" |
35 #include "net/url_request/url_request_status.h" | 34 #include "net/url_request/url_request_status.h" |
36 #include "testing/gmock/include/gmock/gmock.h" | 35 #include "testing/gmock/include/gmock/gmock.h" |
37 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
38 | 37 |
39 using file_util::CloseFile; | 38 using file_util::CloseFile; |
40 using file_util::CreateAndOpenTemporaryFile; | 39 using file_util::CreateAndOpenTemporaryFile; |
41 using file_util::CreateAndOpenTemporaryFileInDir; | 40 using file_util::CreateAndOpenTemporaryFileInDir; |
42 using file_util::Delete; | 41 using file_util::Delete; |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 &profile, username_, hash_ascii_, std::string(), std::string()); | 705 &profile, username_, hash_ascii_, std::string(), std::string()); |
707 | 706 |
708 // Post a task to cancel the login attempt. | 707 // Post a task to cancel the login attempt. |
709 CancelLogin(auth.get()); | 708 CancelLogin(auth.get()); |
710 | 709 |
711 // Run the UI thread until we exit it gracefully. | 710 // Run the UI thread until we exit it gracefully. |
712 message_loop_ui_.Run(); | 711 message_loop_ui_.Run(); |
713 } | 712 } |
714 | 713 |
715 } // namespace chromeos | 714 } // namespace chromeos |
OLD | NEW |