#include "components/ukm/test_ukm_recorder.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/mock_web_contents_observer.h"
#include "content/shell/browser/shell.h"
#include "media/base/media_switches.h"
#include "net/dns/mock_host_resolver.h"
#include "services/metrics/public/cpp/ukm_builders.h"
namespace {
class Waiter : public content::WebContentsObserver { … };
}
class AudioContextManagerTest : public content::ContentBrowserTest { … };
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
BUILDFLAG(IS_FUCHSIA)
#define MAYBE_AudioContextPlaybackRecorded …
#else
#define MAYBE_AudioContextPlaybackRecorded …
#endif
IN_PROC_BROWSER_TEST_F(AudioContextManagerTest,
MAYBE_AudioContextPlaybackRecorded) { … }
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA)
#define MAYBE_AudioContextPlaybackTimeUkm …
#else
#define MAYBE_AudioContextPlaybackTimeUkm …
#endif
IN_PROC_BROWSER_TEST_F(AudioContextManagerTest,
MAYBE_AudioContextPlaybackTimeUkm) { … }