| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 5 #include <string> | 
| 6 #include <vector> | 6 #include <vector> | 
| 7 | 7 | 
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" | 
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" | 
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" | 
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 446       .WillByDefault(Return(salt_v)); | 446       .WillByDefault(Return(salt_v)); | 
| 447   EXPECT_CALL(*mock_library_, GetSystemSalt()) | 447   EXPECT_CALL(*mock_library_, GetSystemSalt()) | 
| 448       .Times(1); | 448       .Times(1); | 
| 449 | 449 | 
| 450   TestingProfile profile; | 450   TestingProfile profile; | 
| 451 | 451 | 
| 452   MockFactory factory; | 452   MockFactory factory; | 
| 453   URLFetcher::set_factory(&factory); | 453   URLFetcher::set_factory(&factory); | 
| 454 | 454 | 
| 455   scoped_refptr<GoogleAuthenticator> auth(new GoogleAuthenticator(&consumer)); | 455   scoped_refptr<GoogleAuthenticator> auth(new GoogleAuthenticator(&consumer)); | 
| 456   auth->AuthenticateToLogin(&profile, username_, hash_ascii_); | 456   auth->AuthenticateToLogin( | 
|  | 457       &profile, username_, hash_ascii_, std::string(), std::string()); | 
| 457 | 458 | 
| 458   URLFetcher::set_factory(NULL); | 459   URLFetcher::set_factory(NULL); | 
| 459   message_loop.RunAllPending(); | 460   message_loop.RunAllPending(); | 
| 460 } | 461 } | 
| 461 | 462 | 
| 462 }  // namespace chromeos | 463 }  // namespace chromeos | 
| OLD | NEW | 
|---|