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

Side by Side Diff: ios/chrome/browser/ui/print/print_controller_egtest.mm

Issue 2677253002: [ObjC ARC] Converts ios/chrome/browser/ui/print: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/print/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 <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 #import <UIKit/UIKit.h> 6 #import <UIKit/UIKit.h>
7 #import <XCTest/XCTest.h> 7 #import <XCTest/XCTest.h>
8 8
9 #import "ios/chrome/browser/ui/uikit_ui_util.h" 9 #import "ios/chrome/browser/ui/uikit_ui_util.h"
10 #include "ios/chrome/grit/ios_strings.h" 10 #include "ios/chrome/grit/ios_strings.h"
11 #include "ios/chrome/test/app/navigation_test_util.h" 11 #include "ios/chrome/test/app/navigation_test_util.h"
12 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" 12 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
13 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 13 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
14 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 14 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
15 #import "ios/web/public/test/http_server.h" 15 #import "ios/web/public/test/http_server.h"
16 #import "ios/web/public/test/http_server_util.h" 16 #import "ios/web/public/test/http_server_util.h"
17 #include "ui/base/l10n/l10n_util_mac.h" 17 #include "ui/base/l10n/l10n_util_mac.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 #if !defined(__has_feature) || !__has_feature(objc_arc)
21 #error "This file requires ARC support."
22 #endif
23
20 namespace { 24 namespace {
21 // URL which leads to a PDF file. 25 // URL which leads to a PDF file.
22 const char kPDFURL[] = "http://ios/testing/data/http_server_files/testpage.pdf"; 26 const char kPDFURL[] = "http://ios/testing/data/http_server_files/testpage.pdf";
23 27
24 // A test HTML URL. 28 // A test HTML URL.
25 const char kHTMLURL[] = "http://test"; 29 const char kHTMLURL[] = "http://test";
26 } // namespace 30 } // namespace
27 31
28 // Print test cases. These are Earl Grey integration tests. 32 // Print test cases. These are Earl Grey integration tests.
29 // They test printing a normal page and a pdf. 33 // They test printing a normal page and a pdf.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 [[EarlGrey selectElementWithMatcher:printButton] performAction:grey_tap()]; 77 [[EarlGrey selectElementWithMatcher:printButton] performAction:grey_tap()];
74 78
75 id<GREYMatcher> printerOptionButton = grey_allOf( 79 id<GREYMatcher> printerOptionButton = grey_allOf(
76 grey_accessibilityLabel(@"Printer Options"), 80 grey_accessibilityLabel(@"Printer Options"),
77 grey_not(grey_accessibilityTrait(UIAccessibilityTraitHeader)), nil); 81 grey_not(grey_accessibilityTrait(UIAccessibilityTraitHeader)), nil);
78 [[EarlGrey selectElementWithMatcher:printerOptionButton] 82 [[EarlGrey selectElementWithMatcher:printerOptionButton]
79 assertWithMatcher:grey_sufficientlyVisible()]; 83 assertWithMatcher:grey_sufficientlyVisible()];
80 } 84 }
81 85
82 @end 86 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/print/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698