| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import <XCTest/XCTest.h> | 5 #import <XCTest/XCTest.h> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/mac/bind_objc_block.h" | 8 #include "base/mac/bind_objc_block.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "components/strings/grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
| 13 #include "components/translate/core/browser/translate_download_manager.h" | 13 #include "components/translate/core/browser/translate_download_manager.h" |
| 14 #include "components/translate/core/browser/translate_manager.h" | 14 #include "components/translate/core/browser/translate_manager.h" |
| 15 #include "components/translate/core/browser/translate_pref_names.h" |
| 15 #include "components/translate/core/common/translate_constants.h" | 16 #include "components/translate/core/common/translate_constants.h" |
| 16 #include "components/translate/core/common/translate_pref_names.h" | |
| 17 #include "components/translate/core/common/translate_switches.h" | 17 #include "components/translate/core/common/translate_switches.h" |
| 18 #include "components/translate/ios/browser/ios_translate_driver.h" | 18 #include "components/translate/ios/browser/ios_translate_driver.h" |
| 19 #import "components/translate/ios/browser/js_translate_manager.h" | 19 #import "components/translate/ios/browser/js_translate_manager.h" |
| 20 #import "components/translate/ios/browser/language_detection_controller.h" | 20 #import "components/translate/ios/browser/language_detection_controller.h" |
| 21 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 21 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 22 #include "ios/chrome/browser/translate/chrome_ios_translate_client.h" | 22 #include "ios/chrome/browser/translate/chrome_ios_translate_client.h" |
| 23 #import "ios/chrome/test/app/chrome_test_util.h" | 23 #import "ios/chrome/test/app/chrome_test_util.h" |
| 24 #import "ios/chrome/test/app/tab_test_util.h" | 24 #import "ios/chrome/test/app/tab_test_util.h" |
| 25 #include "ios/chrome/test/app/web_view_interaction_test_util.h" | 25 #include "ios/chrome/test/app/web_view_interaction_test_util.h" |
| 26 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 26 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 [[EarlGrey | 846 [[EarlGrey |
| 847 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId( | 847 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId( |
| 848 IDS_TRANSLATE_INFOBAR_REVERT)] | 848 IDS_TRANSLATE_INFOBAR_REVERT)] |
| 849 assertWithMatcher:grey_notNil()]; | 849 assertWithMatcher:grey_notNil()]; |
| 850 [[EarlGrey | 850 [[EarlGrey |
| 851 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId( | 851 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId( |
| 852 IDS_CLOSE)] assertWithMatcher:grey_notNil()]; | 852 IDS_CLOSE)] assertWithMatcher:grey_notNil()]; |
| 853 } | 853 } |
| 854 | 854 |
| 855 @end | 855 @end |
| OLD | NEW |