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

Side by Side Diff: chrome/browser/ui/webui/bidi_checker_web_ui_test.cc

Issue 2010463002: Mocker for OSCrypt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated doc Created 4 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
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/bidi_checker_web_ui_test.h" 5 #include "chrome/browser/ui/webui/bidi_checker_web_ui_test.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 state, 280 state,
281 zipcode, 281 zipcode,
282 country, 282 country,
283 phone); 283 phone);
284 PersonalDataManager* personal_data_manager = 284 PersonalDataManager* personal_data_manager =
285 autofill::PersonalDataManagerFactory::GetForProfile(profile); 285 autofill::PersonalDataManagerFactory::GetForProfile(profile);
286 ASSERT_TRUE(personal_data_manager); 286 ASSERT_TRUE(personal_data_manager);
287 personal_data_manager->AddProfile(autofill_profile); 287 personal_data_manager->AddProfile(autofill_profile);
288 } 288 }
289 289
290 static void TearDownSettingsAutofillPageTest() {
291 autofill::test::ReenableSystemServices();
292 }
293
290 // http://crbug.com/94642 294 // http://crbug.com/94642
291 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR, 295 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
292 DISABLED_TestSettingsAutofillPage) { 296 DISABLED_TestSettingsAutofillPage) {
293 SetupSettingsAutofillPageTest(browser()->profile(), 297 SetupSettingsAutofillPageTest(browser()->profile(),
294 "\xD7\x9E\xD7\xA9\xD7\x94", 298 "\xD7\x9E\xD7\xA9\xD7\x94",
295 "\xD7\x91", 299 "\xD7\x91",
296 "\xD7\x9B\xD7\x94\xD7\x9F", 300 "\xD7\x9B\xD7\x94\xD7\x9F",
297 "moshe.b.cohen@biditest.com", 301 "moshe.b.cohen@biditest.com",
298 "\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x20" 302 "\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x20"
299 "\xD7\x91\xD7\xA2\xD7\x9E", 303 "\xD7\x91\xD7\xA2\xD7\x9E",
300 "\xD7\x93\xD7\xA8\xD7\x9A\x20\xD7\x9E\xD7\xA0" 304 "\xD7\x93\xD7\xA8\xD7\x9A\x20\xD7\x9E\xD7\xA0"
301 "\xD7\x97\xD7\x9D\x20\xD7\x91\xD7\x92\xD7" 305 "\xD7\x97\xD7\x9D\x20\xD7\x91\xD7\x92\xD7"
302 "\x99\xD7\x9F\x20\x32\x33", 306 "\x99\xD7\x9F\x20\x32\x33",
303 "\xD7\xA7\xD7\x95\xD7\x9E\xD7\x94\x20\x32\x36", 307 "\xD7\xA7\xD7\x95\xD7\x9E\xD7\x94\x20\x32\x36",
304 "\xD7\xAA\xD7\x9C\x20\xD7\x90\xD7\x91\xD7\x99" 308 "\xD7\xAA\xD7\x9C\x20\xD7\x90\xD7\x91\xD7\x99"
305 "\xD7\x91", 309 "\xD7\x91",
306 "", 310 "",
307 "66183", 311 "66183",
308 "\xD7\x99\xD7\xA9\xD7\xA8\xD7\x90\xD7\x9C", 312 "\xD7\x99\xD7\xA9\xD7\xA8\xD7\x90\xD7\x9C",
309 "0000"); 313 "0000");
310 std::string url(chrome::kChromeUISettingsFrameURL); 314 std::string url(chrome::kChromeUISettingsFrameURL);
311 url += std::string(chrome::kAutofillSubPage); 315 url += std::string(chrome::kAutofillSubPage);
312 RunBidiCheckerOnPage(url); 316 RunBidiCheckerOnPage(url);
317 TearDownSettingsAutofillPageTest();
313 } 318 }
314 319
315 // http://crbug.com/94642 320 // http://crbug.com/94642
316 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL, 321 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
317 DISABLED_TestSettingsAutofillPage) { 322 DISABLED_TestSettingsAutofillPage) {
318 SetupSettingsAutofillPageTest(browser()->profile(), 323 SetupSettingsAutofillPageTest(browser()->profile(),
319 "Milton", 324 "Milton",
320 "C.", 325 "C.",
321 "Waddams", 326 "Waddams",
322 "red.swingline@initech.com", 327 "red.swingline@initech.com",
323 "Initech", 328 "Initech",
324 "4120 Freidrich Lane", 329 "4120 Freidrich Lane",
325 "Basement", 330 "Basement",
326 "Austin", 331 "Austin",
327 "Texas", 332 "Texas",
328 "78744", 333 "78744",
329 "United States", 334 "United States",
330 "5125551234"); 335 "5125551234");
331 std::string url(chrome::kChromeUISettingsFrameURL); 336 std::string url(chrome::kChromeUISettingsFrameURL);
332 url += std::string(chrome::kAutofillSubPage); 337 url += std::string(chrome::kAutofillSubPage);
333 RunBidiCheckerOnPage(url); 338 RunBidiCheckerOnPage(url);
339 TearDownSettingsAutofillPageTest();
334 } 340 }
335 341
336 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR, 342 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
337 TestSettingsClearBrowserDataPage) { 343 TestSettingsClearBrowserDataPage) {
338 std::string url(chrome::kChromeUISettingsFrameURL); 344 std::string url(chrome::kChromeUISettingsFrameURL);
339 url += std::string(chrome::kClearBrowserDataSubPage); 345 url += std::string(chrome::kClearBrowserDataSubPage);
340 RunBidiCheckerOnPage(url); 346 RunBidiCheckerOnPage(url);
341 } 347 }
342 348
343 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL, 349 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 741
736 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR, 742 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
737 TestHistoryFrame) { 743 TestHistoryFrame) {
738 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); 744 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
739 } 745 }
740 746
741 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL, 747 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
742 TestHistoryFrame) { 748 TestHistoryFrame) {
743 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); 749 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
744 } 750 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698