#include "components/metrics/net/net_metrics_log_uploader.h"
#include <memory>
#include <string_view>
#include "base/base64.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "components/encrypted_messages/encrypted_message.pb.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/reporting_info.pb.h"
#include "third_party/zlib/google/compression_utils.h"
#include "url/gurl.h"
namespace metrics {
class NetMetricsLogUploaderTest : public testing::Test { … };
void CheckReportingInfoHeader(net::HttpRequestHeaders headers,
int expected_attempt_count) { … }
TEST_F(NetMetricsLogUploaderTest, OnUploadCompleteReuseUploader) { … }
TEST_F(NetMetricsLogUploaderTest, ForceDiscard) { … }
TEST_F(NetMetricsLogUploaderTest, MessageOverHTTPIsEncrypted) { … }
TEST_F(NetMetricsLogUploaderTest, MessageOverHTTPSIsNotEncrypted) { … }
TEST_F(NetMetricsLogUploaderTest, MessageOverHTTPLocalhostIsNotEncrypted) { … }
}