| OLD | NEW |
| 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.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "chrome/browser/autofill/autofill_common_test.h" | |
| 18 #include "chrome/browser/autofill/autofill_profile.h" | |
| 19 #include "chrome/browser/autofill/personal_data_manager.h" | |
| 20 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 17 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 21 #include "chrome/browser/history/history_service.h" | 18 #include "chrome/browser/history/history_service.h" |
| 22 #include "chrome/browser/history/history_service_factory.h" | 19 #include "chrome/browser/history/history_service_factory.h" |
| 23 #include "chrome/browser/prefs/session_startup_pref.h" | 20 #include "chrome/browser/prefs/session_startup_pref.h" |
| 24 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
| 26 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 27 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
| 28 #include "chrome/test/base/ui_test_utils.h" | 25 #include "chrome/test/base/ui_test_utils.h" |
| 26 #include "components/autofill/browser/autofill_common_test.h" |
| 27 #include "components/autofill/browser/autofill_profile.h" |
| 28 #include "components/autofill/browser/personal_data_manager.h" |
| 29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
| 30 #include "ui/base/resource/resource_bundle.h" | 30 #include "ui/base/resource/resource_bundle.h" |
| 31 | 31 |
| 32 #if defined(TOOLKIT_GTK) | 32 #if defined(TOOLKIT_GTK) |
| 33 #include <gtk/gtk.h> | 33 #include <gtk/gtk.h> |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 static const base::FilePath::CharType* kWebUIBidiCheckerLibraryJS = | 36 static const base::FilePath::CharType* kWebUIBidiCheckerLibraryJS = |
| 37 FILE_PATH_LITERAL("third_party/bidichecker/bidichecker_packaged.js"); | 37 FILE_PATH_LITERAL("third_party/bidichecker/bidichecker_packaged.js"); |
| 38 | 38 |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 // chrome://history-frame | 784 // chrome://history-frame |
| 785 //============================== | 785 //============================== |
| 786 | 786 |
| 787 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHistoryFrame) { | 787 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHistoryFrame) { |
| 788 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); | 788 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); |
| 789 } | 789 } |
| 790 | 790 |
| 791 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHistoryFrame) { | 791 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHistoryFrame) { |
| 792 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); | 792 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); |
| 793 } | 793 } |
| OLD | NEW |