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

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

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
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/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 "chrome/browser/chromeos/cros/mock_cryptohome_library.h" 17 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h"
18 #include "chrome/browser/chromeos/cros/mock_library_loader.h" 18 #include "chrome/browser/chromeos/cros/mock_library_loader.h"
19 #include "chrome/browser/chromeos/login/client_login_response_handler.h" 19 #include "chrome/browser/chromeos/login/client_login_response_handler.h"
20 #include "chrome/browser/chromeos/login/issue_response_handler.h" 20 #include "chrome/browser/chromeos/login/issue_response_handler.h"
21 #include "chrome/browser/chromeos/login/mock_auth_response_handler.h" 21 #include "chrome/browser/chromeos/login/mock_auth_response_handler.h"
22 #include "chrome/browser/chromeos/login/mock_login_status_consumer.h" 22 #include "chrome/browser/chromeos/login/mock_login_status_consumer.h"
23 #include "chrome/browser/chromeos/login/mock_url_fetchers.h" 23 #include "chrome/browser/chromeos/login/mock_url_fetchers.h"
24 #include "chrome/browser/chromeos/login/mock_user_manager.h" 24 #include "chrome/browser/chromeos/login/mock_user_manager.h"
25 #include "chrome/browser/chromeos/login/user_manager.h" 25 #include "chrome/browser/chromeos/login/user_manager.h"
26 #include "chrome/common/chrome_paths.h" 26 #include "chrome/common/chrome_paths.h"
27 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h" 27 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h"
28 #include "chrome/common/net/url_fetcher.h"
29 #include "chrome/test/testing_profile.h" 28 #include "chrome/test/testing_profile.h"
30 #include "content/browser/browser_thread.h" 29 #include "content/browser/browser_thread.h"
30 #include "content/common/url_fetcher.h"
31 #include "googleurl/src/gurl.h" 31 #include "googleurl/src/gurl.h"
32 #include "net/base/net_errors.h" 32 #include "net/base/net_errors.h"
33 #include "net/url_request/url_request_status.h" 33 #include "net/url_request/url_request_status.h"
34 #include "testing/gmock/include/gmock/gmock.h" 34 #include "testing/gmock/include/gmock/gmock.h"
35 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
36 36
37 using file_util::CloseFile; 37 using file_util::CloseFile;
38 using file_util::CreateAndOpenTemporaryFile; 38 using file_util::CreateAndOpenTemporaryFile;
39 using file_util::CreateAndOpenTemporaryFileInDir; 39 using file_util::CreateAndOpenTemporaryFileInDir;
40 using file_util::Delete; 40 using file_util::Delete;
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 // Post a task to cancel the login attempt. 707 // Post a task to cancel the login attempt.
708 CancelLogin(auth.get()); 708 CancelLogin(auth.get());
709 709
710 URLFetcher::set_factory(NULL); 710 URLFetcher::set_factory(NULL);
711 711
712 // Run the UI thread until we exit it gracefully. 712 // Run the UI thread until we exit it gracefully.
713 message_loop_ui_.Run(); 713 message_loop_ui_.Run();
714 } 714 }
715 715
716 } // namespace chromeos 716 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/cookie_fetcher_unittest.cc ('k') | chrome/browser/chromeos/login/image_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698