OLD | NEW |
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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/bind.h" | 7 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
13 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h" |
15 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" | 14 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 TestCompletionCallback callback; | 65 TestCompletionCallback callback; |
67 helper->StartFetching(base::Bind(&TestCompletionCallback::callback, | 66 helper->StartFetching(base::Bind(&TestCompletionCallback::callback, |
68 base::Unretained(&callback))); | 67 base::Unretained(&callback))); |
69 | 68 |
70 std::list<content::CacheStorageUsageInfo> result = callback.result(); | 69 std::list<content::CacheStorageUsageInfo> result = callback.result(); |
71 | 70 |
72 ASSERT_EQ(1U, result.size()); | 71 ASSERT_EQ(1U, result.size()); |
73 EXPECT_EQ(origin, result.begin()->origin); | 72 EXPECT_EQ(origin, result.begin()->origin); |
74 } | 73 } |
75 } // namespace | 74 } // namespace |
OLD | NEW |