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

Side by Side Diff: ios/chrome/test/earl_grey/accessibility_util.mm

Issue 2608733002: Fix include/import in ios/testing and ios/chrome/test (Closed)
Patch Set: Created 3 years, 11 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/test/block_cleanup_test.mm ('k') | ios/chrome/test/earl_grey/chrome_earl_grey.mm » ('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 <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 #import <XCTest/XCTest.h> 6 #import <XCTest/XCTest.h>
7 7
8 #import "ios/chrome/test/earl_grey/accessibility_util.h" 8 #include "ios/chrome/test/earl_grey/accessibility_util.h"
9 9
10 namespace { 10 namespace {
11 11
12 // Returns whether a UIView is hidden from the screen, based on the alpha 12 // Returns whether a UIView is hidden from the screen, based on the alpha
13 // and hidden properties of the UIView. 13 // and hidden properties of the UIView.
14 bool ViewIsHidden(UIView* view) { 14 bool ViewIsHidden(UIView* view) {
15 return view.alpha == 0 || view.hidden; 15 return view.alpha == 0 || view.hidden;
16 } 16 }
17 17
18 // Returns whether a view should be accessible. A view should be accessible if 18 // Returns whether a view should be accessible. A view should be accessible if
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 GREYAssert(!inaccessibleChildrenError, 344 GREYAssert(!inaccessibleChildrenError,
345 @"The accessibility tests failed: Inaccessible children error"); 345 @"The accessibility tests failed: Inaccessible children error");
346 GREYAssert(!noLabels, @"The accessibility tests failed: No labels error"); 346 GREYAssert(!noLabels, @"The accessibility tests failed: No labels error");
347 GREYAssert(!badDefaultLabel, 347 GREYAssert(!badDefaultLabel,
348 @"The accessibility tests failed: Bad default labels error"); 348 @"The accessibility tests failed: Bad default labels error");
349 GREYAssert(!tableViewError, 349 GREYAssert(!tableViewError,
350 @"The accessibility tests failed: Table view error"); 350 @"The accessibility tests failed: Table view error");
351 } 351 }
352 352
353 } // namespace chrome_test_util 353 } // namespace chrome_test_util
OLDNEW
« no previous file with comments | « ios/chrome/test/block_cleanup_test.mm ('k') | ios/chrome/test/earl_grey/chrome_earl_grey.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698