| Index: components/certificate_reporting/error_report_unittest.cc
|
| diff --git a/components/certificate_reporting/error_report_unittest.cc b/components/certificate_reporting/error_report_unittest.cc
|
| index df0dbef294ca946a112da283b57836f9c20324d1..0ecd92277cccad9756fd6b9892ce0935b675e27c 100644
|
| --- a/components/certificate_reporting/error_report_unittest.cc
|
| +++ b/components/certificate_reporting/error_report_unittest.cc
|
| @@ -128,9 +128,10 @@ TEST(ErrorReportTest, SerializedReportAsProtobufWithInterstitialInfo) {
|
| GetTestSSLInfo(EXCLUDE_UNVERIFIED_CERT_CHAIN, &ssl_info, kCertStatus));
|
| ErrorReport report(kDummyHostname, ssl_info);
|
|
|
| - report.SetInterstitialInfo(ErrorReport::INTERSTITIAL_CLOCK,
|
| - ErrorReport::USER_PROCEEDED,
|
| - ErrorReport::INTERSTITIAL_OVERRIDABLE);
|
| + const base::Time interstitial_time = base::Time::Now();
|
| + report.SetInterstitialInfo(
|
| + ErrorReport::INTERSTITIAL_CLOCK, ErrorReport::USER_PROCEEDED,
|
| + ErrorReport::INTERSTITIAL_OVERRIDABLE, interstitial_time);
|
|
|
| ASSERT_TRUE(report.Serialize(&serialized_report));
|
|
|
| @@ -153,6 +154,10 @@ TEST(ErrorReportTest, SerializedReportAsProtobufWithInterstitialInfo) {
|
| EXPECT_THAT(
|
| deserialized_report.cert_error(),
|
| UnorderedElementsAre(kFirstReportedCertError, kSecondReportedCertError));
|
| +
|
| + EXPECT_EQ(
|
| + interstitial_time.ToInternalValue(),
|
| + deserialized_report.interstitial_info().interstitial_created_time_usec());
|
| }
|
|
|
| // Test that a serialized report can be parsed.
|
|
|