OLD | NEW |
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/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 const char OobeBaseTest::kFakeUserEmail[] = "fake-email@gmail.com"; | 37 const char OobeBaseTest::kFakeUserEmail[] = "fake-email@gmail.com"; |
38 const char OobeBaseTest::kFakeUserPassword[] = "fake-password"; | 38 const char OobeBaseTest::kFakeUserPassword[] = "fake-password"; |
39 const char OobeBaseTest::kFakeSIDCookie[] = "fake-SID-cookie"; | 39 const char OobeBaseTest::kFakeSIDCookie[] = "fake-SID-cookie"; |
40 const char OobeBaseTest::kFakeLSIDCookie[] = "fake-LSID-cookie"; | 40 const char OobeBaseTest::kFakeLSIDCookie[] = "fake-LSID-cookie"; |
41 | 41 |
42 OobeBaseTest::OobeBaseTest() | 42 OobeBaseTest::OobeBaseTest() |
43 : fake_gaia_(new FakeGaia()), | 43 : fake_gaia_(new FakeGaia()), |
44 network_portal_detector_(NULL), | 44 network_portal_detector_(NULL), |
45 needs_background_networking_(false), | 45 needs_background_networking_(false), |
46 gaia_frame_parent_("signin-frame"), | 46 gaia_frame_parent_("signin-frame"), |
47 use_webview_(false), | 47 use_webview_(true), |
48 initialize_fake_merge_session_(true) { | 48 initialize_fake_merge_session_(true) { |
49 set_exit_when_last_browser_closes(false); | 49 set_exit_when_last_browser_closes(false); |
50 set_chromeos_user_ = false; | 50 set_chromeos_user_ = false; |
51 } | 51 } |
52 | 52 |
53 OobeBaseTest::~OobeBaseTest() { | 53 OobeBaseTest::~OobeBaseTest() { |
54 } | 54 } |
55 | 55 |
56 void OobeBaseTest::SetUp() { | 56 void OobeBaseTest::SetUp() { |
57 base::FilePath test_data_dir; | 57 base::FilePath test_data_dir; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 "document.getElementById('$FieldId').value = '$FieldValue';" | 274 "document.getElementById('$FieldId').value = '$FieldValue';" |
275 "var e = new Event('input');" | 275 "var e = new Event('input');" |
276 "document.getElementById('$FieldId').dispatchEvent(e);" | 276 "document.getElementById('$FieldId').dispatchEvent(e);" |
277 "})();"; | 277 "})();"; |
278 ReplaceSubstringsAfterOffset(&js, 0, "$FieldId", field_id); | 278 ReplaceSubstringsAfterOffset(&js, 0, "$FieldId", field_id); |
279 ReplaceSubstringsAfterOffset(&js, 0, "$FieldValue", field_value); | 279 ReplaceSubstringsAfterOffset(&js, 0, "$FieldValue", field_value); |
280 ExecuteJsInSigninFrame(js); | 280 ExecuteJsInSigninFrame(js); |
281 } | 281 } |
282 | 282 |
283 } // namespace chromeos | 283 } // namespace chromeos |
OLD | NEW |