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

Side by Side Diff: ios/web/navigation/navigation_manager_impl_unittest.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "ios/web/navigation/navigation_manager_impl.h" 6 #include "ios/web/navigation/navigation_manager_impl.h"
7 #include "ios/web/public/test/test_browser_state.h" 7 #include "ios/web/public/test/test_browser_state.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "testing/gtest_mac.h" 9 #include "testing/gtest_mac.h"
10 #include "testing/platform_test.h" 10 #include "testing/platform_test.h"
11 11
12 namespace web { 12 namespace web {
13 namespace { 13 namespace {
14 14
15 class NavigationManagerTest : public PlatformTest { 15 class NavigationManagerTest : public PlatformTest {
16 protected: 16 protected:
17 void SetUp() override { 17 void SetUp() override {
18 manager_.reset(new NavigationManagerImpl(NULL, &browser_state_)); 18 manager_.reset(new NavigationManagerImpl(NULL, &browser_state_));
19 } 19 }
20 scoped_ptr<NavigationManagerImpl> manager_; 20 std::unique_ptr<NavigationManagerImpl> manager_;
21 TestBrowserState browser_state_; 21 TestBrowserState browser_state_;
22 }; 22 };
23 23
24 // TODO(stuartmorgan): Remove this once NavigationManager has actual 24 // TODO(stuartmorgan): Remove this once NavigationManager has actual
25 // functionality to test, instead of just being pass-throughs. 25 // functionality to test, instead of just being pass-throughs.
26 TEST_F(NavigationManagerTest, Dummy) { 26 TEST_F(NavigationManagerTest, Dummy) {
27 EXPECT_FALSE(manager_->CanGoBack()); 27 EXPECT_FALSE(manager_->CanGoBack());
28 EXPECT_FALSE(manager_->CanGoForward()); 28 EXPECT_FALSE(manager_->CanGoForward());
29 } 29 }
30 30
31 } // namespace 31 } // namespace
32 } // namespace web 32 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.mm ('k') | ios/web/net/cert_verifier_block_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698