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 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/download/download_danger_prompt.h" | 10 #include "chrome/browser/download/download_danger_prompt.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/safe_browsing/download_protection_service.h" | 12 #include "chrome/browser/safe_browsing/download_protection_service.h" |
13 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h" | 13 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_commands.h" | 15 #include "chrome/browser/ui/browser_commands.h" |
16 #include "chrome/browser/ui/browser_tabstrip.h" | 16 #include "chrome/browser/ui/browser_tabstrip.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
18 #include "chrome/common/safe_browsing/csd.pb.h" | |
19 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
20 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
| 20 #include "components/safe_browsing/csd.pb.h" |
21 #include "components/safe_browsing_db/database_manager.h" | 21 #include "components/safe_browsing_db/database_manager.h" |
22 #include "content/public/test/mock_download_item.h" | 22 #include "content/public/test/mock_download_item.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "ui/base/ui_base_switches.h" | 25 #include "ui/base/ui_base_switches.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 | 27 |
28 using ::testing::_; | 28 using ::testing::_; |
29 using ::testing::ByRef; | 29 using ::testing::ByRef; |
30 using ::testing::Eq; | 30 using ::testing::Eq; |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 // Prefix for test instantiations intentionally left blank since the test | 335 // Prefix for test instantiations intentionally left blank since the test |
336 // fixture class has a single parameterization. | 336 // fixture class has a single parameterization. |
337 INSTANTIATE_TEST_CASE_P(, | 337 INSTANTIATE_TEST_CASE_P(, |
338 DownloadDangerPromptTest, | 338 DownloadDangerPromptTest, |
339 ::testing::Values(SecondaryUiMd::ENABLED, | 339 ::testing::Values(SecondaryUiMd::ENABLED, |
340 SecondaryUiMd::DISABLED), | 340 SecondaryUiMd::DISABLED), |
341 &SecondaryUiMdStatusToString); | 341 &SecondaryUiMdStatusToString); |
342 | 342 |
343 } // namespace safe_browsing | 343 } // namespace safe_browsing |
OLD | NEW |