Roll src/third_party/WebKit f007c95:0171005 (svn 185074:185088)
[chromium-blink-merge.git] / ios / web / navigation / navigation_item_impl_unittest.mm
blob4c64221adb8c6012451bdeb5acbbd4401e02b92f
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.
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"
13 namespace web {
14 namespace {
16 class NavigationItemTest : public PlatformTest {
17  protected:
18   virtual void SetUp() {
19     item_.reset(new NavigationItemImpl());
20   }
22   scoped_ptr<NavigationItemImpl> item_;
25 // TODO(rohitrao): Add and adapt tests from NavigationEntryImpl.
26 TEST_F(NavigationItemTest, Dummy) {
27   const GURL url("http://init.test");
28   item_->SetURL(url);
29   EXPECT_TRUE(item_->GetURL().is_valid());
32 }  // namespace
33 }  // namespace web