| Index: chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc
|
| diff --git a/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc b/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc
|
| index a5bdeb3867fb9fa68b4176d3841fd5e801fc64e3..f3cdea96399ce36addf5a89d83cd5b5e6423b92e 100644
|
| --- a/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc
|
| +++ b/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc
|
| @@ -39,19 +39,24 @@ class TestCertificateReportSender : public net::ReportSender {
|
| ~TestCertificateReportSender() override {}
|
|
|
| void Send(const GURL& report_uri,
|
| + const std::string& content_type,
|
| const std::string& serialized_report) override {
|
| latest_report_uri_ = report_uri;
|
| + latest_content_type_ = content_type,
|
| latest_serialized_report_ = serialized_report;
|
| }
|
|
|
| const GURL& latest_report_uri() { return latest_report_uri_; }
|
|
|
| + const std::string& latest_content_type() { return latest_content_type_; }
|
| +
|
| const std::string& latest_serialized_report() {
|
| return latest_serialized_report_;
|
| }
|
|
|
| private:
|
| GURL latest_report_uri_;
|
| + std::string latest_content_type_;
|
| std::string latest_serialized_report_;
|
| };
|
|
|
| @@ -478,6 +483,7 @@ TEST(ChromeExpectCTReporterTest, SendReport) {
|
| reporter.OnExpectCTFailed(host_port, report_uri, ssl_info);
|
| EXPECT_EQ(report_uri, sender->latest_report_uri());
|
| EXPECT_FALSE(sender->latest_serialized_report().empty());
|
| + EXPECT_EQ("application/json", sender->latest_content_type());
|
| ASSERT_NO_FATAL_FAILURE(CheckExpectCTReport(
|
| sender->latest_serialized_report(), host_port, ssl_info));
|
|
|
|
|