| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> |
| 6 |
| 5 #include <string> | 7 #include <string> |
| 6 #include <vector> | 8 #include <vector> |
| 7 | 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 11 #include "chrome/browser/safe_browsing/local_database_manager.h" | 14 #include "chrome/browser/safe_browsing/local_database_manager.h" |
| 12 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 15 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 13 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
| 14 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "testing/platform_test.h" | 19 #include "testing/platform_test.h" |
| 17 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Stop the service without first flushing above tasks. | 215 // Stop the service without first flushing above tasks. |
| 213 db_manager->StopOnIOThread(false); | 216 db_manager->StopOnIOThread(false); |
| 214 | 217 |
| 215 // Now run posted tasks, whish should include the extension check which has | 218 // Now run posted tasks, whish should include the extension check which has |
| 216 // been posted to the safe browsing task runner. This should not crash. | 219 // been posted to the safe browsing task runner. This should not crash. |
| 217 content::RunAllBlockingPoolTasksUntilIdle(); | 220 content::RunAllBlockingPoolTasksUntilIdle(); |
| 218 base::RunLoop().RunUntilIdle(); | 221 base::RunLoop().RunUntilIdle(); |
| 219 } | 222 } |
| 220 | 223 |
| 221 } // namespace safe_browsing | 224 } // namespace safe_browsing |
| OLD | NEW |