OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This test creates a safebrowsing service using test safebrowsing database | 5 // This test creates a safebrowsing service using test safebrowsing database |
6 // and a test protocol manager. It is used to test logics in safebrowsing | 6 // and a test protocol manager. It is used to test logics in safebrowsing |
7 // service. | 7 // service. |
8 | 8 |
9 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 9 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
10 | 10 |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/files/scoped_temp_dir.h" | 16 #include "base/files/scoped_temp_dir.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/message_loop/message_loop.h" |
20 #include "base/metrics/field_trial.h" | 21 #include "base/metrics/field_trial.h" |
21 #include "base/path_service.h" | 22 #include "base/path_service.h" |
22 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
23 #include "base/strings/string_split.h" | 24 #include "base/strings/string_split.h" |
24 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
26 #include "base/test/thread_test_helper.h" | 27 #include "base/test/thread_test_helper.h" |
27 #include "base/time/time.h" | 28 #include "base/time/time.h" |
28 #include "build/build_config.h" | 29 #include "build/build_config.h" |
29 #include "chrome/browser/bookmarks/startup_task_runner_service_factory.h" | 30 #include "chrome/browser/bookmarks/startup_task_runner_service_factory.h" |
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2490 } | 2491 } |
2491 | 2492 |
2492 INSTANTIATE_TEST_CASE_P( | 2493 INSTANTIATE_TEST_CASE_P( |
2493 MaybeSetMetadata, | 2494 MaybeSetMetadata, |
2494 V4SafeBrowsingServiceMetadataTest, | 2495 V4SafeBrowsingServiceMetadataTest, |
2495 testing::Values(ThreatPatternType::NONE, | 2496 testing::Values(ThreatPatternType::NONE, |
2496 ThreatPatternType::MALWARE_LANDING, | 2497 ThreatPatternType::MALWARE_LANDING, |
2497 ThreatPatternType::MALWARE_DISTRIBUTION)); | 2498 ThreatPatternType::MALWARE_DISTRIBUTION)); |
2498 | 2499 |
2499 } // namespace safe_browsing | 2500 } // namespace safe_browsing |
OLD | NEW |