OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/utf_string_conversions.h" |
5 #include "chrome/browser/browsing_data_database_helper.h" | 6 #include "chrome/browser/browsing_data_database_helper.h" |
6 #include "chrome/test/in_process_browser_test.h" | 7 #include "chrome/test/in_process_browser_test.h" |
7 #include "chrome/test/testing_profile.h" | 8 #include "chrome/test/testing_profile.h" |
8 #include "chrome/test/ui_test_utils.h" | 9 #include "chrome/test/ui_test_utils.h" |
9 | 10 |
10 static const char kTestIdentifier1[] = "http_www.google.com_0"; | 11 static const char kTestIdentifier1[] = "http_www.google.com_0"; |
11 | 12 |
12 static const char kTestIdentifierExtension[] = | 13 static const char kTestIdentifierExtension[] = |
13 "chrome-extension_behllobkkfkfnphdnhnkndlbkcpglgmj_0"; | 14 "chrome-extension_behllobkkfkfnphdnhnkndlbkcpglgmj_0"; |
14 | 15 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 IN_PROC_BROWSER_TEST_F(BrowsingDataDatabaseHelperTest, FetchData) { | 72 IN_PROC_BROWSER_TEST_F(BrowsingDataDatabaseHelperTest, FetchData) { |
72 CreateDatabases(); | 73 CreateDatabases(); |
73 scoped_refptr<BrowsingDataDatabaseHelper> database_helper( | 74 scoped_refptr<BrowsingDataDatabaseHelper> database_helper( |
74 new BrowsingDataDatabaseHelper(&testing_profile_)); | 75 new BrowsingDataDatabaseHelper(&testing_profile_)); |
75 StopTestOnCallback stop_test_on_callback(database_helper); | 76 StopTestOnCallback stop_test_on_callback(database_helper); |
76 database_helper->StartFetching( | 77 database_helper->StartFetching( |
77 NewCallback(&stop_test_on_callback, &StopTestOnCallback::Callback)); | 78 NewCallback(&stop_test_on_callback, &StopTestOnCallback::Callback)); |
78 // Blocks until StopTestOnCallback::Callback is notified. | 79 // Blocks until StopTestOnCallback::Callback is notified. |
79 ui_test_utils::RunMessageLoop(); | 80 ui_test_utils::RunMessageLoop(); |
80 } | 81 } |
OLD | NEW |