#include "chrome/browser/metrics/structured/chrome_event_storage.h"
#include <cstdint>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/chrome_user_metrics_extension.pb.h"
#include "third_party/metrics_proto/structured_data.pb.h"
namespace metrics::structured {
namespace {
StructuredEventProto BuildTestEvent(
uint64_t id = 0,
const std::vector<int64_t>& metrics = std::vector<int64_t>()) { … }
}
class ChromeEventStorageTest : public testing::Test { … };
TEST_F(ChromeEventStorageTest, StoreAndProvideEvents) { … }
TEST_F(ChromeEventStorageTest, EventsClearedAfterReport) { … }
TEST_F(ChromeEventStorageTest, Purge) { … }
}