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_service_worker_helper.
h" | 5 #include "chrome/browser/browsing_data/mock_browsing_data_service_worker_helper.
h" |
6 | 6 |
| 7 #include <vector> |
| 8 |
7 #include "base/callback.h" | 9 #include "base/callback.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
10 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
11 #include "content/public/browser/storage_partition.h" | 13 #include "content/public/browser/storage_partition.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
13 | 15 |
14 MockBrowsingDataServiceWorkerHelper::MockBrowsingDataServiceWorkerHelper( | 16 MockBrowsingDataServiceWorkerHelper::MockBrowsingDataServiceWorkerHelper( |
15 Profile* profile) | 17 Profile* profile) |
16 : BrowsingDataServiceWorkerHelper( | 18 : BrowsingDataServiceWorkerHelper( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 i->second = true; | 65 i->second = true; |
64 } | 66 } |
65 | 67 |
66 bool MockBrowsingDataServiceWorkerHelper::AllDeleted() { | 68 bool MockBrowsingDataServiceWorkerHelper::AllDeleted() { |
67 for (std::map<GURL, bool>::const_iterator i = origins_.begin(); | 69 for (std::map<GURL, bool>::const_iterator i = origins_.begin(); |
68 i != origins_.end(); ++i) | 70 i != origins_.end(); ++i) |
69 if (i->second) | 71 if (i->second) |
70 return false; | 72 return false; |
71 return true; | 73 return true; |
72 } | 74 } |
OLD | NEW |