Chromium Code Reviews| 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..cf0ea364271f47a306e495df6a0d33bdab02de3c |
| --- /dev/null |
| +++ b/ios/web/navigation/navigation_item_impl_unittest.mm |
| @@ -0,0 +1,34 @@ |
| +// 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(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.
|
| +// functionality to test, instead of just being pass-throughs. |
| +TEST_F(NavigationItemTest, Dummy) { |
| + const GURL url("http://init.test"); |
| + item_->SetURL(url); |
| + EXPECT_TRUE(item_->GetURL().is_valid()); |
| +} |
| + |
| +} // namespace |
| +} // namespace web |