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

Side by Side Diff: ios/chrome/browser/ui/find_bar/find_in_page_egtest.mm

Issue 2676253003: [ObjC ARC] Converts ios/chrome/browser/ui/find_bar:eg_tests to ARC. (Closed)
Patch Set: Created 3 years, 10 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/ui/find_bar/BUILD.gn ('k') | no next file » | 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/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "components/strings/grit/components_strings.h" 8 #include "components/strings/grit/components_strings.h"
9 #import "ios/chrome/browser/find_in_page/find_in_page_controller.h" 9 #import "ios/chrome/browser/find_in_page/find_in_page_controller.h"
10 #import "ios/chrome/browser/ui/find_bar/find_bar_controller_ios.h" 10 #import "ios/chrome/browser/ui/find_bar/find_bar_controller_ios.h"
11 #import "ios/chrome/browser/ui/find_bar/find_bar_view.h" 11 #import "ios/chrome/browser/ui/find_bar/find_bar_view.h"
12 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" 12 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h"
13 #import "ios/chrome/test/app/tab_test_util.h" 13 #import "ios/chrome/test/app/tab_test_util.h"
14 #import "ios/chrome/test/earl_grey/accessibility_util.h" 14 #import "ios/chrome/test/earl_grey/accessibility_util.h"
15 #import "ios/chrome/test/earl_grey/chrome_assertions.h" 15 #import "ios/chrome/test/earl_grey/chrome_assertions.h"
16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
17 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" 17 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
18 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 18 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
19 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 19 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
20 #import "ios/testing/wait_util.h" 20 #import "ios/testing/wait_util.h"
21 #import "ios/web/public/test/http_server.h" 21 #import "ios/web/public/test/http_server.h"
22 #import "ios/web/public/test/http_server_util.h" 22 #import "ios/web/public/test/http_server_util.h"
23 #include "ui/base/l10n/l10n_util_mac.h" 23 #include "ui/base/l10n/l10n_util_mac.h"
24 24
25 #if !defined(__has_feature) || !__has_feature(objc_arc)
26 #error "This file requires ARC support."
27 #endif
28
25 namespace { 29 namespace {
26 30
27 // Test web page content. 31 // Test web page content.
28 const std::string kFindInPageResponse = "Find in page. Find in page."; 32 const std::string kFindInPageResponse = "Find in page. Find in page.";
29 33
30 } // namespace 34 } // namespace
31 35
32 using chrome_test_util::WebViewContainingText; 36 using chrome_test_util::WebViewContainingText;
33 37
34 // Tests for Find in Page. 38 // Tests for Find in Page.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Navigate to a page with some text. 222 // Navigate to a page with some text.
219 [ChromeEarlGrey loadURL:self.testURL]; 223 [ChromeEarlGrey loadURL:self.testURL];
220 224
221 // Verify web page finished loading. 225 // Verify web page finished loading.
222 [[EarlGrey 226 [[EarlGrey
223 selectElementWithMatcher:WebViewContainingText(kFindInPageResponse)] 227 selectElementWithMatcher:WebViewContainingText(kFindInPageResponse)]
224 assertWithMatcher:grey_notNil()]; 228 assertWithMatcher:grey_notNil()];
225 } 229 }
226 230
227 @end 231 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/find_bar/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698