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

Side by Side Diff: ios/chrome/browser/ui/activity_services/activity_service_controller_egtest.mm

Issue 2680973004: [ObjC ARC] Converts ios/chrome/browser/ui/activity_services: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/activity_services/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/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/strings/grit/components_strings.h" 8 #include "components/strings/grit/components_strings.h"
9 #import "ios/chrome/browser/ui/browser_view_controller_dependency_factory.h" 9 #import "ios/chrome/browser/ui/browser_view_controller_dependency_factory.h"
10 #import "ios/chrome/browser/ui/uikit_ui_util.h" 10 #import "ios/chrome/browser/ui/uikit_ui_util.h"
11 #include "ios/chrome/grit/ios_strings.h" 11 #include "ios/chrome/grit/ios_strings.h"
12 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 12 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
13 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" 13 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
14 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 14 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
15 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 15 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
16 #import "ios/third_party/material_components_ios/src/components/Snackbar/src/Mat erialSnackbar.h" 16 #import "ios/third_party/material_components_ios/src/components/Snackbar/src/Mat erialSnackbar.h"
17 #import "ios/chrome/test/app/chrome_test_util.h" 17 #import "ios/chrome/test/app/chrome_test_util.h"
18 #import "ios/web/public/test/earl_grey/web_view_matchers.h" 18 #import "ios/web/public/test/earl_grey/web_view_matchers.h"
19 #import "ios/web/public/test/http_server.h" 19 #import "ios/web/public/test/http_server.h"
20 #import "ios/web/public/test/http_server_util.h" 20 #import "ios/web/public/test/http_server_util.h"
21 #include "ios/web/public/test/response_providers/error_page_response_provider.h" 21 #include "ios/web/public/test/response_providers/error_page_response_provider.h"
22 #include "ios/web/public/test/response_providers/response_provider.h" 22 #include "ios/web/public/test/response_providers/response_provider.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 // Assert the activity service is visible by checking the "copy" button. 31 // Assert the activity service is visible by checking the "copy" button.
28 void AssertActivityServiceVisible() { 32 void AssertActivityServiceVisible() {
29 [[EarlGrey 33 [[EarlGrey
30 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabel( 34 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabel(
31 @"Copy")] 35 @"Copy")]
32 assertWithMatcher:grey_interactable()]; 36 assertWithMatcher:grey_interactable()];
33 } 37 }
34 38
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 assertWithMatcher:grey_interactable()]; 138 assertWithMatcher:grey_interactable()];
135 139
136 // Start the Copy action and verify that the share menu gets dismissed. 140 // Start the Copy action and verify that the share menu gets dismissed.
137 [[EarlGrey 141 [[EarlGrey
138 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabel( 142 selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabel(
139 @"Copy")] performAction:grey_tap()]; 143 @"Copy")] performAction:grey_tap()];
140 AssertActivityServiceNotVisible(); 144 AssertActivityServiceNotVisible();
141 } 145 }
142 146
143 @end 147 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/activity_services/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698