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 "chrome/browser/profiles/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ptr_util.h" |
17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
18 #include "base/sequenced_task_runner.h" | 19 #include "base/sequenced_task_runner.h" |
19 #include "base/synchronization/waitable_event.h" | 20 #include "base/synchronization/waitable_event.h" |
20 #include "base/values.h" | 21 #include "base/values.h" |
21 #include "base/version.h" | 22 #include "base/version.h" |
22 #include "build/build_config.h" | 23 #include "build/build_config.h" |
23 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
24 #include "chrome/browser/chrome_notification_types.h" | 25 #include "chrome/browser/chrome_notification_types.h" |
25 #include "chrome/browser/net/url_request_mock_util.h" | 26 #include "chrome/browser/net/url_request_mock_util.h" |
26 #include "chrome/browser/profiles/chrome_version_service.h" | 27 #include "chrome/browser/profiles/chrome_version_service.h" |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 base::Bind(&SendReportHttpResponse, embedded_test_server()->base_url())); | 837 base::Bind(&SendReportHttpResponse, embedded_test_server()->base_url())); |
837 ASSERT_TRUE(hpkp_test_server.Start()); | 838 ASSERT_TRUE(hpkp_test_server.Start()); |
838 | 839 |
839 // To send a report, must use a non-numeric host name for the original | 840 // To send a report, must use a non-numeric host name for the original |
840 // request. This must not match the host name of the server that reports are | 841 // request. This must not match the host name of the server that reports are |
841 // sent to. | 842 // sent to. |
842 ui_test_utils::NavigateToURL(browser(), | 843 ui_test_utils::NavigateToURL(browser(), |
843 hpkp_test_server.GetURL("localhost", "/")); | 844 hpkp_test_server.GetURL("localhost", "/")); |
844 wait_for_report_loop.Run(); | 845 wait_for_report_loop.Run(); |
845 } | 846 } |
OLD | NEW |