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

Unified Diff: ios/clean/chrome/browser/ui/root/root_coordinator_unittest.mm

Issue 2800313002: [ios] RootCoordinator and view controller. (Closed)
Patch Set: Unittests, showcase, and clean up. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/root/root_coordinator_unittest.mm
diff --git a/ios/clean/chrome/browser/ui/root/root_coordinator_unittest.mm b/ios/clean/chrome/browser/ui/root/root_coordinator_unittest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..db6a92a38204bd29c585ae835e65744b8d1a8944
--- /dev/null
+++ b/ios/clean/chrome/browser/ui/root/root_coordinator_unittest.mm
@@ -0,0 +1,21 @@
+// Copyright 2017 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 "ios/clean/chrome/browser/ui/root/root_coordinator.h"
+
+#import "ios/clean/chrome/browser/url_opening.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+namespace {
+
+// Tests that RootCoordinator conforms to the URLOpening protocol.
+TEST(RootCoordinatorTest, TestConformsToURLOpening) {
+ EXPECT_TRUE([RootCoordinator conformsToProtocol:@protocol(URLOpening)]);
+}
+
lpromero 2017/04/12 08:58:49 You could add a test that starting the coordinator
edchin 2017/04/13 07:39:15 In order to test the coordinator's start method,
+} // namespace

Powered by Google App Engine
This is Rietveld 408576698