OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/browsing_data_helper_browsertest.h" | 14 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" |
15 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 15 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 typedef BrowsingDataHelperCallback<BrowsingDataIndexedDBHelper::IndexedDBInfo> | 22 typedef BrowsingDataHelperCallback<BrowsingDataIndexedDBHelper::IndexedDBInfo> |
23 TestCompletionCallback; | 23 TestCompletionCallback; |
24 | 24 |
25 typedef InProcessBrowserTest BrowsingDataIndexedDBHelperTest; | 25 typedef InProcessBrowserTest BrowsingDataIndexedDBHelperTest; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 base::Bind(&TestCompletionCallback::callback, | 64 base::Bind(&TestCompletionCallback::callback, |
65 base::Unretained(&callback))); | 65 base::Unretained(&callback))); |
66 | 66 |
67 std::list<BrowsingDataIndexedDBHelper::IndexedDBInfo> result = | 67 std::list<BrowsingDataIndexedDBHelper::IndexedDBInfo> result = |
68 callback.result(); | 68 callback.result(); |
69 | 69 |
70 ASSERT_EQ(1U, result.size()); | 70 ASSERT_EQ(1U, result.size()); |
71 EXPECT_EQ(origin, result.begin()->origin); | 71 EXPECT_EQ(origin, result.begin()->origin); |
72 } | 72 } |
73 } // namespace | 73 } // namespace |
OLD | NEW |