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

Side by Side Diff: ios/web/navigation/navigation_item_impl_unittest.mm

Issue 678483003: Adds web::NavigationItemImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 2014 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 "base/logging.h"
6 #include "base/mac/scoped_nsobject.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "ios/web/navigation/navigation_item_impl.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/gtest_mac.h"
11 #include "testing/platform_test.h"
12
13 namespace web {
14 namespace {
15
16 class NavigationItemTest : public PlatformTest {
17 protected:
18 virtual void SetUp() {
19 item_.reset(new NavigationItemImpl());
20 }
21
22 scoped_ptr<NavigationItemImpl> item_;
23 };
24
25 // TODO(stuartmorgan): Remove this once NavigationItem has actual
blundell 2014/10/24 07:26:50 Isn't this TODO outdated now?
stuartmorgan 2014/10/24 14:57:48 Yes, we should update it to a TODO to bring in rea
rohitrao (ping after 24h) 2014/10/24 15:08:00 Done.
26 // functionality to test, instead of just being pass-throughs.
27 TEST_F(NavigationItemTest, Dummy) {
28 const GURL url("http://init.test");
29 item_->SetURL(url);
30 EXPECT_TRUE(item_->GetURL().is_valid());
31 }
32
33 } // namespace
34 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698