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

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

Issue 2642193012: Make EarlGrey matchers compliant with Chromium style. (Closed)
Patch Set: build.gn and rebase 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/earl_grey/chrome_matchers.mm ('k') | ios/chrome/test/earl_grey/smoke_egtest.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 <XCTest/XCTest.h> 5 #import <XCTest/XCTest.h>
6 6
7 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 7 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
8 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 8 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
9 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 9 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 using chrome_test_util::webViewContainingText; 12 using chrome_test_util::WebViewContainingText;
13 13
14 // Test suite to verify Internet connectivity. 14 // Test suite to verify Internet connectivity.
15 @interface DeviceCheckTestCase : ChromeTestCase 15 @interface DeviceCheckTestCase : ChromeTestCase
16 @end 16 @end
17 17
18 @implementation DeviceCheckTestCase 18 @implementation DeviceCheckTestCase
19 19
20 // Verifies Internet connectivity by navigating to browsingtest.appspot.com. 20 // Verifies Internet connectivity by navigating to browsingtest.appspot.com.
21 - (void)testNetworkConnection { 21 - (void)testNetworkConnection {
22 [ChromeEarlGrey loadURL:GURL("http://browsingtest.appspot.com")]; 22 [ChromeEarlGrey loadURL:GURL("http://browsingtest.appspot.com")];
23 [[EarlGrey selectElementWithMatcher:webViewContainingText("Window1")] 23 [[EarlGrey selectElementWithMatcher:WebViewContainingText("Window1")]
24 assertWithMatcher:grey_notNil()]; 24 assertWithMatcher:grey_notNil()];
25 } 25 }
26 26
27 @end 27 @end
OLDNEW
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_matchers.mm ('k') | ios/chrome/test/earl_grey/smoke_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698