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

Unified 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: Review. Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/navigation/navigation_item_impl.mm ('k') | ios/web/public/navigation_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_item_impl_unittest.mm
diff --git a/ios/web/navigation/navigation_item_impl_unittest.mm b/ios/web/navigation/navigation_item_impl_unittest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..4c64221adb8c6012451bdeb5acbbd4401e02b92f
--- /dev/null
+++ b/ios/web/navigation/navigation_item_impl_unittest.mm
@@ -0,0 +1,33 @@
+// Copyright 2014 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.
+
+#include "base/logging.h"
+#include "base/mac/scoped_nsobject.h"
+#include "base/memory/scoped_ptr.h"
+#include "ios/web/navigation/navigation_item_impl.h"
+#include "testing/gtest/include/gtest/gtest.h"
+#include "testing/gtest_mac.h"
+#include "testing/platform_test.h"
+
+namespace web {
+namespace {
+
+class NavigationItemTest : public PlatformTest {
+ protected:
+ virtual void SetUp() {
+ item_.reset(new NavigationItemImpl());
+ }
+
+ scoped_ptr<NavigationItemImpl> item_;
+};
+
+// TODO(rohitrao): Add and adapt tests from NavigationEntryImpl.
+TEST_F(NavigationItemTest, Dummy) {
+ const GURL url("http://init.test");
+ item_->SetURL(url);
+ EXPECT_TRUE(item_->GetURL().is_valid());
+}
+
+} // namespace
+} // namespace web
« no previous file with comments | « ios/web/navigation/navigation_item_impl.mm ('k') | ios/web/public/navigation_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698