summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/tests/unittests/mock/MockEventThread.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/tests/unittests/mock/MockEventThread.h')
-rw-r--r--services/surfaceflinger/tests/unittests/mock/MockEventThread.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/services/surfaceflinger/tests/unittests/mock/MockEventThread.h b/services/surfaceflinger/tests/unittests/mock/MockEventThread.h
index 485b4acdce..054aaf8ae1 100644
--- a/services/surfaceflinger/tests/unittests/mock/MockEventThread.h
+++ b/services/surfaceflinger/tests/unittests/mock/MockEventThread.h
@@ -20,7 +20,8 @@
#include "Scheduler/EventThread.h"
-namespace android::mock {
+namespace android {
+namespace mock {
class EventThread : public android::EventThread {
public:
@@ -28,18 +29,13 @@ public:
~EventThread() override;
MOCK_CONST_METHOD2(createEventConnection,
- sp<EventThreadConnection>(ResyncCallback,
- ISurfaceComposer::EventRegistrationFlags));
+ sp<EventThreadConnection>(ResyncCallback, ISurfaceComposer::ConfigChanged));
MOCK_METHOD0(onScreenReleased, void());
MOCK_METHOD0(onScreenAcquired, void());
MOCK_METHOD2(onHotplugReceived, void(PhysicalDisplayId, bool));
- MOCK_METHOD3(onModeChanged, void(PhysicalDisplayId, DisplayModeId, nsecs_t));
- MOCK_METHOD2(onFrameRateOverridesChanged,
- void(PhysicalDisplayId, std::vector<FrameRateOverride>));
+ MOCK_METHOD3(onConfigChanged, void(PhysicalDisplayId, HwcConfigIndexType, nsecs_t));
MOCK_CONST_METHOD1(dump, void(std::string&));
- MOCK_METHOD2(setDuration,
- void(std::chrono::nanoseconds workDuration,
- std::chrono::nanoseconds readyDuration));
+ MOCK_METHOD1(setPhaseOffset, void(nsecs_t phaseOffset));
MOCK_METHOD1(registerDisplayEventConnection,
status_t(const sp<android::EventThreadConnection> &));
MOCK_METHOD2(setVsyncRate, void(uint32_t, const sp<android::EventThreadConnection> &));
@@ -49,4 +45,5 @@ public:
MOCK_METHOD0(getEventThreadConnectionCount, size_t());
};
-} // namespace android::mock
+} // namespace mock
+} // namespace android