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

Side by Side Diff: ios/chrome/browser/ui/page_not_available_controller_unittest.mm

Issue 2589803002: Upstream Chrome on iOS source code [6/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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/page_not_available_controller.mm ('k') | ios/chrome/browser/ui/popup_menu/popup_menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698