Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc

Issue 2130493002: Implement THROTTLED priority semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NetworkStreamThrottler
Patch Set: Fix use of message_loop_ in Android tests. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cronet/url_request_context_config_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | components/cronet/url_request_context_config_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698