| 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 8a0cf822f48f43ec2d4fee785896a93c2e046814..5b69a376efc1094f22b61cbc510285438fb5ce0d 100644
|
| --- a/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc
|
| +++ b/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/base64.h"
|
| #include "base/command_line.h"
|
| #include "base/json/json_reader.h"
|
| +#include "base/message_loop/message_loop.h"
|
| #include "base/run_loop.h"
|
| #include "base/test/histogram_tester.h"
|
| #include "base/test/scoped_feature_list.h"
|
| @@ -338,6 +339,7 @@ class ChromeExpectCTReporterWaitTest : public ::testing::Test {
|
|
|
| // Test that no report is sent when the feature is not enabled.
|
| TEST(ChromeExpectCTReporterTest, FeatureDisabled) {
|
| + base::MessageLoop message_loop;
|
| base::HistogramTester histograms;
|
| histograms.ExpectTotalCount(kSendHistogramName, 0);
|
|
|
| @@ -366,6 +368,7 @@ TEST(ChromeExpectCTReporterTest, FeatureDisabled) {
|
|
|
| // Test that no report is sent if the report URI is empty.
|
| TEST(ChromeExpectCTReporterTest, EmptyReportURI) {
|
| + base::MessageLoop message_loop;
|
| base::HistogramTester histograms;
|
| histograms.ExpectTotalCount(kSendHistogramName, 0);
|
|
|
| @@ -419,6 +422,7 @@ TEST_F(ChromeExpectCTReporterWaitTest, SendReportFailure) {
|
|
|
| // Test that a sent report has the right format.
|
| TEST(ChromeExpectCTReporterTest, SendReport) {
|
| + base::MessageLoop message_loop;
|
| base::HistogramTester histograms;
|
| histograms.ExpectTotalCount(kFailureHistogramName, 0);
|
| histograms.ExpectTotalCount(kSendHistogramName, 0);
|
|
|