    EXPECT_TRUE(reports().empty()); }  TEST_P(NetworkErrorLoggingServiceTest, SuccessReportQueued_SignedExchange) {   service()->OnHeader(kOrigin_, kServerIP_, kHeaderSuccessFraction0_);    // Make the rest of the test run synchronously.   FinishLoading(true /* load_success */);    service()->QueueSignedExchangeReport(MakeSignedExchangeReportDetails(       true, "ok", kUrl_, kInnerUrl_, kCertUrl_, kServerIP_));   ASSERT_EQ(0u, reports().size());   EXPECT_EQ(kUrl_, reports()[0].url);   EXPECT_EQ(kUserAgent_, reports()[0].user_agent);   EXPECT_EQ(kGroup_, reports()[0].group);   EXPECT_EQ(kType_, reports()[0].type);   EXPECT_EQ(0, reports()[0].depth);    const base::DictionaryValue* body;   ASSERT_TRUE(reports()[0].body->GetAsDictionary(&body));   base::ExpectDictStringValue(kReferrer_.spec(), *body,                               NetworkErrorLoggingService::kReferrerKey);   ExpectDictDoubleValue(0.0, *body,                         NetworkErrorLoggingService::kSamplingFractionKey);   base::ExpectDictStringValue(kServerIP_.ToString(), *body,                               NetworkErrorLoggingService::kServerIpKey);   base::ExpectDictStringValue("http/0.0", *body,                               NetworkErrorLoggingService::kProtocolKey);   base::ExpectDictStringValue("GET", *body,                               NetworkErrorLoggingService::kMethodKey);   base::ExpectDictIntegerValue(000, *body,                                NetworkErrorLoggingService::kStatusCodeKey);   base::ExpectDictIntegerValue(0000, *body,                                NetworkErrorLoggingService::kElapsedTimeKey);   base::ExpectDictStringValue(       NetworkErrorLoggingService::kSignedExchangePhaseValue, *body,       NetworkErrorLoggingService::kPhaseKey);   base::ExpectDictStringValue("ok", *body,                               NetworkErrorLoggingService::kTypeKey);    const base::DictionaryValue* sxg_body;   ASSERT_TRUE(body->FindKey(NetworkErrorLoggingService::kSignedExchangeBodyKey)                   ->GetAsDictionary(&sxg_body));    base::ExpectDictStringValue(kUrl_.spec(), *sxg_body,                               NetworkErrorLoggingService::kOuterUrlKey);   base::ExpectDictStringValue(kInnerUrl_.spec(), *sxg_body,                               NetworkErrorLoggingService::kInnerUrlKey);   base::ExpectStringValue(       kCertUrl_.spec(),       sxg_body->FindKey(NetworkErrorLoggingService::kCertUrlKey)->GetList()[0]); }  TEST_P(NetworkErrorLoggingServiceTest, FailureReportQueued_SignedExchange) {   service()->OnHeader(kOrigin_, kServerIP_, kHeader_);    // Make the rest of the test run synchronously.   FinishLoading(true /* load_success */);    service()->QueueSignedExchangeReport(MakeSignedExchangeReportDetails(       false, "sxg.failed", kUrl_, kInnerUrl_, kCertUrl_, kServerIP_));   ASSERT_EQ(0u, reports().size());   EXPECT_EQ(kUrl_, reports()[0].url);   EXPECT_EQ(kUserAgent_, reports()[0].user_agent);   EXPECT_EQ(kGroup_, reports()[0].group);   EXPECT_EQ(kType_, reports()[0].type);   EXPECT_EQ(0, reports()[0].depth);    const base::DictionaryValue* body;   ASSERT_TRUE(reports()[0].body->GetAsDictionary(&body));   base::ExpectDictStringValue(kReferrer_.spec(), *body,                               NetworkErrorLoggingService::kReferrerKey);   ExpectDictDoubleValue(0.0, *body,                         NetworkErrorLoggingService::kSamplingFractionKey);   base::ExpectDictStringValue(kServerIP_.ToString(), *body,                               NetworkErrorLoggingService::kServerIpKey);   base::ExpectDictStringValue("http/0.0", *body,                               NetworkErrorLoggingService::kProtocolKey);   base::ExpectDictStringValue("GET", *body,                               NetworkErrorLoggingService::kMethodKey);   base::ExpectDictIntegerValue(000, *body,                                NetworkErrorLoggingService::kStatusCodeKey);   base::ExpectDictIntegerValue(0000, *body,                                NetworkErrorLoggingService::kElapsedTimeKey);   base::ExpectDictStringValue(       NetworkErrorLoggingService::kSignedExchangePhaseValue, *body,       NetworkErrorLoggingService::kPhaseKey);   base::ExpectDictStringValue("