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

Side by Side Diff: ios/chrome/browser/translate/translate_egtest.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 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 | « ios/chrome/browser/translate/BUILD.gn ('k') | ios/chrome/browser/u2f/BUILD.gn » ('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 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/browser/translate_pref_names.h"
16 #include "components/translate/core/common/translate_constants.h" 16 #include "components/translate/core/common/translate_constants.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"
27 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 27 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
28 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 28 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
29 #import "ios/testing/wait_util.h" 29 #import "ios/testing/wait_util.h"
30 #import "ios/web/public/test/http_server.h" 30 #include "ios/web/public/test/http_server/data_response_provider.h"
31 #include "ios/web/public/test/http_server_util.h" 31 #import "ios/web/public/test/http_server/http_server.h"
32 #include "ios/web/public/test/response_providers/data_response_provider.h" 32 #include "ios/web/public/test/http_server/http_server_util.h"
33 #include "net/base/url_util.h" 33 #include "net/base/url_util.h"
34 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
35 35
36 #if !defined(__has_feature) || !__has_feature(objc_arc) 36 #if !defined(__has_feature) || !__has_feature(objc_arc)
37 #error "This file requires ARC support." 37 #error "This file requires ARC support."
38 #endif 38 #endif
39 39
40 namespace { 40 namespace {
41 41
42 // Some text in English language. 42 // Some text in English language.
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 [[EarlGrey 841 [[EarlGrey
842 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId( 842 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId(
843 IDS_TRANSLATE_INFOBAR_REVERT)] 843 IDS_TRANSLATE_INFOBAR_REVERT)]
844 assertWithMatcher:grey_notNil()]; 844 assertWithMatcher:grey_notNil()];
845 [[EarlGrey 845 [[EarlGrey
846 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId( 846 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId(
847 IDS_CLOSE)] assertWithMatcher:grey_notNil()]; 847 IDS_CLOSE)] assertWithMatcher:grey_notNil()];
848 } 848 }
849 849
850 @end 850 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/translate/BUILD.gn ('k') | ios/chrome/browser/u2f/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698