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/parallel_authenticator.h" | 5 #include "chrome/browser/chromeos/login/parallel_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 14 matching lines...) Expand all Loading... |
25 #include "chrome/common/chrome_paths.h" | 25 #include "chrome/common/chrome_paths.h" |
26 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h" | 26 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h" |
27 #include "chrome/test/base/testing_profile.h" | 27 #include "chrome/test/base/testing_profile.h" |
28 #include "content/test/test_browser_thread.h" | 28 #include "content/test/test_browser_thread.h" |
29 #include "googleurl/src/gurl.h" | 29 #include "googleurl/src/gurl.h" |
30 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
31 #include "net/url_request/url_request_status.h" | 31 #include "net/url_request/url_request_status.h" |
32 #include "testing/gmock/include/gmock/gmock.h" | 32 #include "testing/gmock/include/gmock/gmock.h" |
33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
34 | 34 |
| 35 using content::BrowserThread; |
35 using file_util::CloseFile; | 36 using file_util::CloseFile; |
36 using file_util::CreateAndOpenTemporaryFile; | 37 using file_util::CreateAndOpenTemporaryFile; |
37 using file_util::CreateAndOpenTemporaryFileInDir; | 38 using file_util::CreateAndOpenTemporaryFileInDir; |
38 using file_util::Delete; | 39 using file_util::Delete; |
39 using file_util::WriteFile; | 40 using file_util::WriteFile; |
40 using ::testing::AnyNumber; | 41 using ::testing::AnyNumber; |
41 using ::testing::DoAll; | 42 using ::testing::DoAll; |
42 using ::testing::Invoke; | 43 using ::testing::Invoke; |
43 using ::testing::Return; | 44 using ::testing::Return; |
44 using ::testing::SetArgumentPointee; | 45 using ::testing::SetArgumentPointee; |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 FilePath tmp_file_path = FakeLocalaccountFile(username_); | 792 FilePath tmp_file_path = FakeLocalaccountFile(username_); |
792 ReadLocalaccountFile(auth_.get(), tmp_file_path.BaseName().value()); | 793 ReadLocalaccountFile(auth_.get(), tmp_file_path.BaseName().value()); |
793 | 794 |
794 auth_->AuthenticateToUnlock(username_, ""); | 795 auth_->AuthenticateToUnlock(username_, ""); |
795 message_loop_.Run(); | 796 message_loop_.Run(); |
796 | 797 |
797 Delete(tmp_file_path, false); | 798 Delete(tmp_file_path, false); |
798 } | 799 } |
799 | 800 |
800 } // namespace chromeos | 801 } // namespace chromeos |
OLD | NEW |