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

Unified Diff: ios/chrome/test/earl_grey/device_check_egtest.mm

Issue 2580333003: Upstream Chrome on iOS source code [10/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_util.mm ('k') | ios/chrome/test/earl_grey/eg_tests_hook.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/earl_grey/device_check_egtest.mm
diff --git a/ios/chrome/test/earl_grey/device_check_egtest.mm b/ios/chrome/test/earl_grey/device_check_egtest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..8c5d2644aa6608e2b88c11f1b791fe603b6b2eb3
--- /dev/null
+++ b/ios/chrome/test/earl_grey/device_check_egtest.mm
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <XCTest/XCTest.h>
+
+#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
+#import "ios/chrome/test/earl_grey/chrome_matchers.h"
+#import "ios/chrome/test/earl_grey/chrome_test_case.h"
+#include "url/gurl.h"
+
+using chrome_test_util::webViewContainingText;
+
+// Test suite to verify Internet connectivity.
+@interface DeviceCheckTestCase : ChromeTestCase
+@end
+
+@implementation DeviceCheckTestCase
+
+// Verifies Internet connectivity by navigating to browsingtest.appspot.com.
+- (void)testNetworkConnection {
+ [ChromeEarlGrey loadURL:GURL("http://browsingtest.appspot.com")];
+ [[EarlGrey selectElementWithMatcher:webViewContainingText("Window1")]
+ assertWithMatcher:grey_notNil()];
+}
+
+@end
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_util.mm ('k') | ios/chrome/test/earl_grey/eg_tests_hook.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698