#include "chrome/browser/extensions/event_router_forwarder.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/thread_test_helper.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/common/extension_id.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace extensions {
namespace {
const events::HistogramValue kHistogramValue = …;
const char kEventName[] = …;
class MockEventRouterForwarder : public EventRouterForwarder { … };
static void BroadcastEventToRenderers(
EventRouterForwarder* event_router,
events::HistogramValue histogram_value,
const std::string& event_name,
bool dispatch_to_off_the_record_profiles) { … }
}
class EventRouterForwarderTest : public testing::Test { … };
TEST_F(EventRouterForwarderTest, BroadcastRendererUI) { … }
TEST_F(EventRouterForwarderTest, BroadcastRendererUIIncognito) { … }
TEST_F(EventRouterForwarderTest,
BroadcastRendererUIIncognitoWithDispatchToOffTheRecordProfiles) { … }
TEST_F(EventRouterForwarderTest, BroadcastRendererIO) { … }
}