Index: ios/web/navigation/navigation_manager_impl_unittest.mm |
diff --git a/ios/web/navigation/navigation_manager_impl_unittest.mm b/ios/web/navigation/navigation_manager_impl_unittest.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9460fb09e2a6daf9c0090c8a0503f87040dd9f57 |
--- /dev/null |
+++ b/ios/web/navigation/navigation_manager_impl_unittest.mm |
@@ -0,0 +1,32 @@ |
+// 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 "ios/web/navigation/navigation_manager_impl.h" |
+#include "ios/web/public/test/test_browser_state.h" |
+#include "testing/gtest/include/gtest/gtest.h" |
+#include "testing/gtest_mac.h" |
+#include "testing/platform_test.h" |
+ |
+namespace web { |
+namespace { |
+ |
+class NavigationManagerTest : public PlatformTest { |
+ protected: |
+ void SetUp() override { |
+ manager_.reset(new NavigationManagerImpl(NULL, &browser_state_)); |
+ } |
+ scoped_ptr<NavigationManagerImpl> manager_; |
+ TestBrowserState browser_state_; |
+}; |
+ |
+// TODO(stuartmorgan): Remove this once NavigationManager has actual |
+// functionality to test, instead of just being pass-throughs. |
+TEST_F(NavigationManagerTest, Dummy) { |
+ EXPECT_FALSE(manager_->CanGoBack()); |
+ EXPECT_FALSE(manager_->CanGoForward()); |
+} |
+ |
+} // namespace |
+} // namespace web |