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

Side by Side Diff: ios/web/active_state_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: Add header 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/web/active_state_manager_impl.h" 5 #include "ios/web/active_state_manager_impl.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include <memory>
noyau (Ping after 24h) 2016/04/07 13:34:05 Not needed I think.
8
8 #include "ios/web/public/active_state_manager.h" 9 #include "ios/web/public/active_state_manager.h"
9 #include "ios/web/public/browser_state.h" 10 #include "ios/web/public/browser_state.h"
10 #include "ios/web/public/test/test_browser_state.h" 11 #include "ios/web/public/test/test_browser_state.h"
11 #include "ios/web/public/test/test_web_thread_bundle.h" 12 #include "ios/web/public/test/test_web_thread_bundle.h"
12 #import "ios/web/test/web_test.h" 13 #import "ios/web/test/web_test.h"
13 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
16 17
17 namespace web { 18 namespace web {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 EXPECT_CALL(observer, WillBeDestroyed()).Times(1); 73 EXPECT_CALL(observer, WillBeDestroyed()).Times(1);
73 74
74 active_state_manager->SetActive(true); 75 active_state_manager->SetActive(true);
75 active_state_manager->SetActive(false); 76 active_state_manager->SetActive(false);
76 // There is no need to explicitly remove the observer since it is removed when 77 // There is no need to explicitly remove the observer since it is removed when
77 // |active_state_manager| goes away -- which happens when |browser_state| goes 78 // |active_state_manager| goes away -- which happens when |browser_state| goes
78 // away. 79 // away.
79 } 80 }
80 81
81 } // namespace web 82 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698