OLD | NEW |
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 "chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.h" | 5 #include "chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.h" |
6 | 6 |
| 7 #include <memory> |
7 #include <utility> | 8 #include <utility> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 MockBrowsingDataChannelIDHelper::MockBrowsingDataChannelIDHelper() | 14 MockBrowsingDataChannelIDHelper::MockBrowsingDataChannelIDHelper() |
15 : BrowsingDataChannelIDHelper() {} | 15 : BrowsingDataChannelIDHelper() {} |
16 | 16 |
17 MockBrowsingDataChannelIDHelper:: | 17 MockBrowsingDataChannelIDHelper:: |
18 ~MockBrowsingDataChannelIDHelper() {} | 18 ~MockBrowsingDataChannelIDHelper() {} |
19 | 19 |
20 void MockBrowsingDataChannelIDHelper::StartFetching( | 20 void MockBrowsingDataChannelIDHelper::StartFetching( |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 pair.second = true; | 54 pair.second = true; |
55 } | 55 } |
56 | 56 |
57 bool MockBrowsingDataChannelIDHelper::AllDeleted() { | 57 bool MockBrowsingDataChannelIDHelper::AllDeleted() { |
58 for (const auto& pair : channel_ids_) { | 58 for (const auto& pair : channel_ids_) { |
59 if (pair.second) | 59 if (pair.second) |
60 return false; | 60 return false; |
61 } | 61 } |
62 return true; | 62 return true; |
63 } | 63 } |
OLD | NEW |