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

Unified Diff: ios/web/navigation/navigation_manager_impl_unittest.mm

Issue 1028603004: Upstream ios/web/navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-testing
Patch Set: Rebase and resync Created 5 years, 9 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_manager_impl.mm ('k') | ios/web/navigation/web_load_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.mm ('k') | ios/web/navigation/web_load_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698