OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/certificate_reporting/error_report.h" | 5 #include "components/certificate_reporting/error_report.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
14 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
15 #include "base/time/default_clock.h" | 16 #include "base/time/default_clock.h" |
16 #include "base/time/default_tick_clock.h" | 17 #include "base/time/default_tick_clock.h" |
17 #include "components/certificate_reporting/cert_logger.pb.h" | 18 #include "components/certificate_reporting/cert_logger.pb.h" |
18 #include "components/network_time/network_time_test_utils.h" | 19 #include "components/network_time/network_time_test_utils.h" |
19 #include "components/prefs/testing_pref_service.h" | 20 #include "components/prefs/testing_pref_service.h" |
20 #include "net/cert/cert_status_flags.h" | 21 #include "net/cert/cert_status_flags.h" |
21 #include "net/ssl/ssl_info.h" | 22 #include "net/ssl/ssl_info.h" |
22 #include "net/test/cert_test_util.h" | 23 #include "net/test/cert_test_util.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 CertLoggerRequest parsed; | 253 CertLoggerRequest parsed; |
253 ASSERT_TRUE(parsed.ParseFromString(serialized_report)); | 254 ASSERT_TRUE(parsed.ParseFromString(serialized_report)); |
254 EXPECT_EQ(CertLoggerFeaturesInfo::ANDROID_AIA_FETCHING_ENABLED, | 255 EXPECT_EQ(CertLoggerFeaturesInfo::ANDROID_AIA_FETCHING_ENABLED, |
255 parsed.features_info().android_aia_fetching_status()); | 256 parsed.features_info().android_aia_fetching_status()); |
256 } | 257 } |
257 #endif | 258 #endif |
258 | 259 |
259 } // namespace | 260 } // namespace |
260 | 261 |
261 } // namespace certificate_reporting | 262 } // namespace certificate_reporting |
OLD | NEW |