#include "components/reporting/compression/compression_module.h"
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include "base/containers/flat_map.h"
#include "base/functional/bind.h"
#include "base/hash/hash.h"
#include "base/memory/scoped_refptr.h"
#include "base/rand_util.h"
#include "base/strings/strcat.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/thread_pool.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/reporting/proto/synced/record.pb.h"
#include "components/reporting/resources/resource_manager.h"
#include "components/reporting/util/test_support_callbacks.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/snappy/src/snappy.h"
Eq;
StrEq;
namespace reporting {
namespace {
constexpr char kTestString[] = …;
constexpr char kPoorlyCompressibleTestString[] = …;
class CompressionModuleTest : public ::testing::Test { … };
TEST_F(CompressionModuleTest, CompressRecordSnappy) { … }
TEST_F(CompressionModuleTest, CompressPoorlyCompressibleRecordSnappy) { … }
TEST_F(CompressionModuleTest, CompressRecordBelowThreshold) { … }
TEST_F(CompressionModuleTest, CompressRecordCompressionDisabled) { … }
TEST_F(CompressionModuleTest, CompressRecordCompressionNone) { … }
}
}