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

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

Issue 2729020: Show Captcha dialog. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: remove debug line Created 10 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/google_authenticator.cc ('k') | chrome/browser/chromeos/login/image_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698