#include "components/zoom/test/zoom_test_utils.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "content/public/test/test_utils.h"
#include "third_party/blink/public/common/page/page_zoom.h"
namespace zoom {
bool operator==(const ZoomController::ZoomChangedEventData& lhs,
const ZoomController::ZoomChangedEventData& rhs) { … }
namespace {
ZoomChangedWatcher::ZoomEventPred ZoomChangeEqualTo(
const ZoomController::ZoomChangedEventData& expected) { … }
}
ZoomChangedWatcher::ZoomChangedWatcher(ZoomController* zoom_controller,
ZoomEventPred predicate)
: … { … }
ZoomChangedWatcher::ZoomChangedWatcher(content::WebContents* web_contents,
ZoomEventPred predicate)
: … { … }
ZoomChangedWatcher::ZoomChangedWatcher(
ZoomController* zoom_controller,
const ZoomController::ZoomChangedEventData& expected_event_data)
: … { … }
ZoomChangedWatcher::ZoomChangedWatcher(
content::WebContents* web_contents,
const ZoomController::ZoomChangedEventData& expected_event_data)
: … { … }
ZoomChangedWatcher::~ZoomChangedWatcher() { … }
void ZoomChangedWatcher::Wait() { … }
void ZoomChangedWatcher::OnZoomControllerDestroyed(
zoom::ZoomController* zoom_controller) { … }
void ZoomChangedWatcher::OnZoomChanged(
const ZoomController::ZoomChangedEventData& event_data) { … }
}