#include "ui/base/interaction/element_tracker.h"
#include "base/functional/callback_forward.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/interaction/element_test_util.h"
#include "ui/base/interaction/expect_call_in_scope.h"
namespace ui {
namespace …
TEST(TrackedElementTest, IsATest) { … }
TEST(TrackedElementTest, AsATest) { … }
TEST(ElementTrackerTest, GetUniqueElement) { … }
TEST(ElementTrackerTest, GetFirstMatchingElement) { … }
TEST(ElementTrackerTest, GetFirstMatchingElementWithMultipleElements) { … }
TEST(ElementTrackerTest, GetAllMatchingElements) { … }
TEST(ElementTrackerTest, GetAllMatchingElementsInAnyContext) { … }
TEST(ElementTrackerTest, GetElementInAnyContext) { … }
TEST(ElementTrackerTest, IsElementVisible) { … }
TEST(ElementTrackerTest, AddElementShownCallback) { … }
TEST(ElementTrackerTest, AddElementShownInAnyContextCallback) { … }
TEST(ElementTrackerTest, AddElementActivatedCallback) { … }
TEST(ElementTrackerTest, AddElementActivatedInAnyContextCallback) { … }
TEST(ElementTrackerTest, AddElementHiddenCallback) { … }
TEST(ElementTrackerTest, AddElementHiddenInAnyContextCallback) { … }
TEST(ElementTrackerTest, AddCustomEventCallback) { … }
TEST(ElementTrackerTest, AddCustomEventInAnyContextCallback) { … }
TEST(ElementTrackerTest, AddClassCustomEventCallback) { … }
TEST(ElementTrackerTest, MultipleCustomEventCallbacks) { … }
TEST(ElementTrackerTest, CleanupAfterElementHidden) { … }
TEST(ElementTrackerTest, CleanupAfterCallbacksRemoved) { … }
TEST(ElementTrackerTest, RemoveCallbackDuringRemove) { … }
TEST(ElementTrackerTest, RemoveAndThenAddCallbackDuringRemove) { … }
TEST(ElementTrackerTest, RemoveAndThenAddDifferentCallbackDuringRemove) { … }
TEST(ElementTrackerTest, MultipleCallbacksForSameEvent) { … }
TEST(ElementTrackerTest, HideDuringShowCallback) { … }
TEST(ElementTrackerTest, HideDuringShowCallbackMultipleListeners) { … }
TEST(ElementTrackerTest, GetAllContextsForTesting) { … }
TEST(ElementTrackerTest, GetAllElementsForTestingInAnyContext) { … }
TEST(ElementTrackerTest, GetAllElementsForTestingInSpecificContexts) { … }
TEST(SafeElementReferenceTest, ElementRemainsVisible) { … }
TEST(SafeElementReferenceTest, ElementHidden) { … }
TEST(SafeElementReferenceTest, MoveConstructor) { … }
TEST(SafeElementReferenceTest, MoveOperator) { … }
TEST(SafeElementReferenceTest, CopyConstructor) { … }
TEST(SafeElementReferenceTest, CopyOperator) { … }
class ElementTrackerIdentifierTest : public testing::Test { … };
TEST_F(ElementTrackerIdentifierTest, ShowElementRegistersIdentifier) { … }
TEST_F(ElementTrackerIdentifierTest, AddListenerRegistersIdentifier) { … }
}