#include "chrome/browser/ui/views/media_router/cast_dialog_metrics.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/time/time.h"
#include "chrome/browser/ui/media_router/ui_media_sink.h"
#include "chrome/browser/ui/views/media_router/cast_dialog_sink_button.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/media_router/common/mojom/media_route_provider_id.mojom-shared.h"
#include "components/media_router/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Bucket;
ElementsAre;
namespace media_router {
namespace {
const base::Time init_time = …;
const base::Time paint_time = …;
const base::Time sink_load_time = …;
const base::Time start_casting_time = …;
const base::Time close_dialog_time = …;
}
class CastDialogMetricsTest : public ChromeViewsTestBase { … };
TEST_F(CastDialogMetricsTest, OnSinksLoaded) { … }
TEST_F(CastDialogMetricsTest, OnStartCasting) { … }
TEST_F(CastDialogMetricsTest, OnRecordSinkCount) { … }
TEST_F(CastDialogMetricsTest, OnRecordSinkCountSinkView) { … }
TEST_F(CastDialogMetricsTest, RecordIconState) { … }
TEST_F(CastDialogMetricsTest, RecordDialogActivationLocationAndCastMode) { … }
}