#include "extensions/renderer/bindings/api_event_listeners.h"
#include <functional>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/mock_callback.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
#include "extensions/common/event_filter.h"
#include "extensions/common/mojom/event_dispatcher.mojom.h"
#include "extensions/renderer/bindings/api_binding_test.h"
#include "extensions/renderer/bindings/api_binding_test_util.h"
#include "extensions/renderer/bindings/api_binding_types.h"
#include "extensions/renderer/bindings/listener_tracker.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace extensions {
namespace {
APIEventListenersTest;
MockEventChangeHandler;
const char kFunction[] = …;
const char kEvent[] = …;
const char kContextOwner[] = …;
APIEventListeners::ContextOwnerIdGetter CreateContextOwnerIdGetter() { … }
}
TEST_F(APIEventListenersTest, UnfilteredListeners) { … }
TEST_F(APIEventListenersTest, UnfilteredListenersInvalidation) { … }
TEST_F(APIEventListenersTest, UnfilteredListenersIgnoreFilteringInfo) { … }
TEST_F(APIEventListenersTest, UnfilteredListenersMaxListenersTest) { … }
TEST_F(APIEventListenersTest, UnfilteredListenersLazyListeners) { … }
TEST_F(APIEventListenersTest, FilteredListeners) { … }
TEST_F(APIEventListenersTest,
UnfilteredListenersWithSameFilterDontTriggerUpdate) { … }
TEST_F(APIEventListenersTest, UnfilteredListenersError) { … }
TEST_F(APIEventListenersTest, MultipleUnfilteredListenerEvents) { … }
TEST_F(APIEventListenersTest, FilteredListenersInvalidation) { … }
TEST_F(APIEventListenersTest, FilteredListenersMaxListenersTest) { … }
TEST_F(APIEventListenersTest, FilteredListenersLazyListeners) { … }
}