Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: chrome/browser/chromeos/login/parallel_authenticator_unittest.cc

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/browser/chromeos/login/parallel_authenticator.h" 5 #include "chrome/browser/chromeos/login/parallel_authenticator.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "base/test/thread_test_helper.h" 17 #include "base/test/thread_test_helper.h"
18 #include "chrome/browser/chromeos/cros/cros_library.h" 18 #include "chrome/browser/chromeos/cros/cros_library.h"
19 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" 19 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h"
20 #include "chrome/browser/chromeos/cros/mock_library_loader.h" 20 #include "chrome/browser/chromeos/cros/mock_library_loader.h"
21 #include "chrome/browser/chromeos/cros_settings.h" 21 #include "chrome/browser/chromeos/cros_settings.h"
22 #include "chrome/browser/chromeos/cryptohome/mock_async_method_caller.h" 22 #include "chrome/browser/chromeos/cryptohome/mock_async_method_caller.h"
23 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h"
24 #include "chrome/browser/chromeos/dbus/mock_cryptohome_client.h"
25 #include "chrome/browser/chromeos/login/mock_login_status_consumer.h" 23 #include "chrome/browser/chromeos/login/mock_login_status_consumer.h"
26 #include "chrome/browser/chromeos/login/mock_url_fetchers.h" 24 #include "chrome/browser/chromeos/login/mock_url_fetchers.h"
27 #include "chrome/browser/chromeos/login/mock_user_manager.h" 25 #include "chrome/browser/chromeos/login/mock_user_manager.h"
28 #include "chrome/browser/chromeos/login/test_attempt_state.h" 26 #include "chrome/browser/chromeos/login/test_attempt_state.h"
29 #include "chrome/browser/chromeos/stub_cros_settings_provider.h" 27 #include "chrome/browser/chromeos/stub_cros_settings_provider.h"
30 #include "chrome/common/chrome_paths.h" 28 #include "chrome/common/chrome_paths.h"
31 #include "chrome/common/net/gaia/mock_url_fetcher_factory.h" 29 #include "chrome/common/net/gaia/mock_url_fetcher_factory.h"
32 #include "chrome/test/base/testing_profile.h" 30 #include "chrome/test/base/testing_profile.h"
31 #include "chromeos/dbus/mock_cryptohome_client.h"
32 #include "chromeos/dbus/mock_dbus_thread_manager.h"
33 #include "content/test/test_browser_thread.h" 33 #include "content/test/test_browser_thread.h"
34 #include "googleurl/src/gurl.h" 34 #include "googleurl/src/gurl.h"
35 #include "net/base/net_errors.h" 35 #include "net/base/net_errors.h"
36 #include "net/url_request/url_request_status.h" 36 #include "net/url_request/url_request_status.h"
37 #include "testing/gmock/include/gmock/gmock.h" 37 #include "testing/gmock/include/gmock/gmock.h"
38 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
39 #include "third_party/cros_system_api/dbus/service_constants.h" 39 #include "third_party/cros_system_api/dbus/service_constants.h"
40 40
41 using content::BrowserThread; 41 using content::BrowserThread;
42 using file_util::CloseFile; 42 using file_util::CloseFile;
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 .RetiresOnSaturation(); 766 .RetiresOnSaturation();
767 EXPECT_CALL(*mock_library_, HashPassword(_)) 767 EXPECT_CALL(*mock_library_, HashPassword(_))
768 .WillOnce(Return(std::string())) 768 .WillOnce(Return(std::string()))
769 .RetiresOnSaturation(); 769 .RetiresOnSaturation();
770 770
771 auth_->AuthenticateToUnlock(username_, ""); 771 auth_->AuthenticateToUnlock(username_, "");
772 message_loop_.Run(); 772 message_loop_.Run();
773 } 773 }
774 774
775 } // namespace chromeos 775 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/parallel_authenticator.cc ('k') | chrome/browser/chromeos/login/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698