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

Side by Side Diff: ios/chrome/browser/ui/tools_menu/tools_popup_menu_egtest.mm

Issue 2674313002: [ObjC ARC] Converts ios/chrome/browser/ui/tools_menu: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/tools_menu/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 <XCTest/XCTest.h> 6 #import <XCTest/XCTest.h>
7 7
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "components/strings/grit/components_strings.h" 9 #include "components/strings/grit/components_strings.h"
10 #import "ios/chrome/browser/ui/chrome_web_view_factory.h" 10 #import "ios/chrome/browser/ui/chrome_web_view_factory.h"
11 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" 11 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.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/browser/ui/uikit_ui_util.h" 13 #import "ios/chrome/browser/ui/uikit_ui_util.h"
14 #include "ios/chrome/grit/ios_strings.h" 14 #include "ios/chrome/grit/ios_strings.h"
15 #import "ios/chrome/test/earl_grey/accessibility_util.h" 15 #import "ios/chrome/test/earl_grey/accessibility_util.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/web/public/test/http_server.h" 20 #import "ios/web/public/test/http_server.h"
21 #include "ios/web/public/test/http_server_util.h" 21 #include "ios/web/public/test/http_server_util.h"
22 #include "ios/web/public/test/response_providers/data_response_provider.h" 22 #include "ios/web/public/test/response_providers/data_response_provider.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.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 // A ResponseProvider that provides user agent for httpServer request. 31 // A ResponseProvider that provides user agent for httpServer request.
28 class UserAgentResponseProvider : public web::DataResponseProvider { 32 class UserAgentResponseProvider : public web::DataResponseProvider {
29 public: 33 public:
30 bool CanHandleRequest(const Request& request) override { return true; } 34 bool CanHandleRequest(const Request& request) override { return true; }
31 35
32 void GetResponseHeadersAndBody( 36 void GetResponseHeadersAndBody(
33 const Request& request, 37 const Request& request,
34 scoped_refptr<net::HttpResponseHeaders>* headers, 38 scoped_refptr<net::HttpResponseHeaders>* headers,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 169
166 // Open tools menu and verify elements are accessible. 170 // Open tools menu and verify elements are accessible.
167 - (void)testAccessibilityOnToolsMenu { 171 - (void)testAccessibilityOnToolsMenu {
168 [ChromeEarlGreyUI openToolsMenu]; 172 [ChromeEarlGreyUI openToolsMenu];
169 chrome_test_util::VerifyAccessibilityForCurrentScreen(); 173 chrome_test_util::VerifyAccessibilityForCurrentScreen();
170 // Close Tools menu. 174 // Close Tools menu.
171 [ChromeTestCase removeAnyOpenMenusAndInfoBars]; 175 [ChromeTestCase removeAnyOpenMenusAndInfoBars];
172 } 176 }
173 177
174 @end 178 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tools_menu/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698