blob: a699a9592f4b6b69d90c18b0ebc87458e91fb64e [file] [log] [blame]
// Copyright 2015 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/chrome/browser/ui/page_not_available_controller.h"
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace {
using PageNotAvailableControllerTest = PlatformTest;
TEST_F(PageNotAvailableControllerTest, TestInitWithURL) {
GURL url = GURL("http://foo.bar.com");
PageNotAvailableController* controller =
[[PageNotAvailableController alloc] initWithUrl:url];
EXPECT_EQ(url, controller.url);
EXPECT_TRUE(controller.view);
}
} // namespace