Index: ios/chrome/browser/web/mailto_handler_unittest.mm |
diff --git a/ios/chrome/browser/web/mailto_handler_unittest.mm b/ios/chrome/browser/web/mailto_handler_unittest.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..189c794f6f480ac36596ae07aed277c7cf04e923 |
--- /dev/null |
+++ b/ios/chrome/browser/web/mailto_handler_unittest.mm |
@@ -0,0 +1,15 @@ |
+// 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. |
+ |
+#include "ios/chrome/browser/web/mailto_handler.h" |
+ |
+#include "testing/gtest/include/gtest/gtest.h" |
+#include "testing/gtest_mac.h" |
+ |
+TEST(MailtoHandlerTest, TestConstructor) { |
+ MailtoHandler* handler = |
+ [[MailtoHandler alloc] initWithName:@"Some App" appStoreID:@"12345"]; |
+ EXPECT_NSEQ(@"Some App", [handler appName]); |
+ EXPECT_NSEQ(@"12345", [handler appStoreID]); |
+} |