OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include <gtest/gtest.h> |
| 6 #include "base/logging.h" |
| 7 #include "base/mac/scoped_nsobject.h" |
| 8 #import "ios/chrome/browser/ui/page_not_available_controller.h" |
| 9 |
| 10 namespace { |
| 11 |
| 12 TEST(PageNotAvailableControllerTest, TestInitWithURL) { |
| 13 GURL url = GURL("http://foo.bar.com"); |
| 14 base::scoped_nsobject<PageNotAvailableController> controller( |
| 15 [[PageNotAvailableController alloc] initWithUrl:url]); |
| 16 EXPECT_EQ(url, controller.get().url); |
| 17 EXPECT_TRUE(controller.get().view); |
| 18 } |
| 19 |
| 20 } // namespace |
OLD | NEW |