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

Side by Side Diff: chrome/browser/chromeos/login/test/oobe_base_test.cc

Issue 1394723002: This CL fixes the issue with login using alternative e-mails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test/oobe_base_test.h" 5 #include "chrome/browser/chromeos/login/test/oobe_base_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 22 matching lines...) Expand all
33 33
34 namespace chromeos { 34 namespace chromeos {
35 35
36 namespace { 36 namespace {
37 const char kGAIAHost[] = "accounts.google.com"; 37 const char kGAIAHost[] = "accounts.google.com";
38 } 38 }
39 39
40 // static 40 // static
41 const char OobeBaseTest::kFakeUserEmail[] = "fake-email@gmail.com"; 41 const char OobeBaseTest::kFakeUserEmail[] = "fake-email@gmail.com";
42 const char OobeBaseTest::kFakeUserPassword[] = "fake-password"; 42 const char OobeBaseTest::kFakeUserPassword[] = "fake-password";
43 const char OobeBaseTest::kFakeUserGaiaId[] = "fake-gaiaId";
43 const char OobeBaseTest::kFakeSIDCookie[] = "fake-SID-cookie"; 44 const char OobeBaseTest::kFakeSIDCookie[] = "fake-SID-cookie";
44 const char OobeBaseTest::kFakeLSIDCookie[] = "fake-LSID-cookie"; 45 const char OobeBaseTest::kFakeLSIDCookie[] = "fake-LSID-cookie";
45 46
46 OobeBaseTest::OobeBaseTest() 47 OobeBaseTest::OobeBaseTest()
47 : fake_gaia_(new FakeGaia()), 48 : fake_gaia_(new FakeGaia()),
48 network_portal_detector_(NULL), 49 network_portal_detector_(NULL),
49 needs_background_networking_(false), 50 needs_background_networking_(false),
50 gaia_frame_parent_("signin-frame"), 51 gaia_frame_parent_("signin-frame"),
51 initialize_fake_merge_session_(true) { 52 initialize_fake_merge_session_(true) {
52 set_exit_when_last_browser_closes(false); 53 set_exit_when_last_browser_closes(false);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 "document.getElementById('$FieldId').value = '$FieldValue';" 253 "document.getElementById('$FieldId').value = '$FieldValue';"
253 "var e = new Event('input');" 254 "var e = new Event('input');"
254 "document.getElementById('$FieldId').dispatchEvent(e);" 255 "document.getElementById('$FieldId').dispatchEvent(e);"
255 "})();"; 256 "})();";
256 base::ReplaceSubstringsAfterOffset(&js, 0, "$FieldId", field_id); 257 base::ReplaceSubstringsAfterOffset(&js, 0, "$FieldId", field_id);
257 base::ReplaceSubstringsAfterOffset(&js, 0, "$FieldValue", field_value); 258 base::ReplaceSubstringsAfterOffset(&js, 0, "$FieldValue", field_value);
258 ExecuteJsInSigninFrame(js); 259 ExecuteJsInSigninFrame(js);
259 } 260 }
260 261
261 } // namespace chromeos 262 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/test/oobe_base_test.h ('k') | chrome/browser/resources/chromeos/login/login_common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698