);    service()->OnRequest(       MakeRequestDetails(kOrigin_.GetURL(), ERR_CONNECTION_REFUSED));   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::UPDATE_NEL_POLICY, policy0);   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    service()->QueueSignedExchangeReport(MakeSignedExchangeReportDetails(       false, "sxg.failed", kUrl_, kInnerUrl_, kCertUrl_, kServerIP_));   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::UPDATE_NEL_POLICY, policy0);   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    // Removes policy0 but not policy0.   service()->RemoveBrowsingData(       base::BindRepeating([](const GURL& origin) -> bool {         return origin.host() == "example.com";       }));   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::DELETE_NEL_POLICY, policy0);   expected_commands.emplace_back(MockPersistentNelStore::Command::Type::FLUSH);   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    service()->RemoveAllBrowsingData();   // We failed to load policy0 from the store, so there is nothing to remove   // here.   expected_commands.emplace_back(MockPersistentNelStore::Command::Type::FLUSH);   EXPECT_TRUE(store()->VerifyCommands(expected_commands)); }  TEST_P(NetworkErrorLoggingServiceTest, SendsCommandsToStoreDeferredLoadFailed) {   if (!store())     return;    MockPersistentNelStore::CommandList expected_commands;   NetworkErrorLoggingService::NelPolicy policy0 = MakePolicyForOrigin(kOrigin_);   NetworkErrorLoggingService::NelPolicy policy0 =       MakePolicyForOrigin(kOriginDifferentHost_);   std::vector<NetworkErrorLoggingService::NelPolicy> prestored_policies = {       policy0, policy0};   store()->SetPrestoredPolicies(std::move(prestored_policies));    // The first call to any of the public methods triggers a load.   service()->OnHeader(kOrigin_, kServerIP_, kHeader_);   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::LOAD_NEL_POLICIES);   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    service()->OnRequest(       MakeRequestDetails(kOrigin_.GetURL(), ERR_CONNECTION_REFUSED));   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    service()->QueueSignedExchangeReport(MakeSignedExchangeReportDetails(       false, "sxg.failed", kUrl_, kInnerUrl_, kCertUrl_, kServerIP_));   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    // Removes policy0 but not policy0.   service()->RemoveBrowsingData(       base::BindRepeating([](const GURL& origin) -> bool {         return origin.host() == "example.com";       }));   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    service()->RemoveAllBrowsingData();   EXPECT_TRUE(store()->VerifyCommands(expected_commands));    FinishLoading(false /* load_success */);   // DoOnHeader()   // Because the load failed, there will be no policies in memory, so the store   // is not told to delete anything.   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::ADD_NEL_POLICY, policy0);   // DoOnRequest()   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::UPDATE_NEL_POLICY, policy0);   // DoQueueSignedExchangeReport()   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::UPDATE_NEL_POLICY, policy0);   // DoRemoveBrowsingData()   expected_commands.emplace_back(       MockPersistentNelStore::Command::Type::DELETE_NEL_POLICY, policy0);   expected_commands.emplace_back(MockPersistentNelStore::Command::Type::FLUSH);   // DoRemoveAllBrowsingData()   // We failed to load policy0 from the store, so there is nothing to remove   // here.   expected_commands.emplace_back(MockPersistentNelStore::Command::Type::FLUSH);   EXPECT_TRUE(store()->VerifyCommands(expected_commands)); }  TEST_P(NetworkErrorLoggingServiceTest, 