Skip to content

Commit 290d426

Browse files
committed
Add new methods to PowerHalWrapperAidlTest
Change-Id: Iaccc4353410f3ad997f268701bc381cb18bd64e8 Flag: EXEMPT hal change Bug: 360908317 Bug: 367803904 Test: atest PowerHalWrapperAidlTest
1 parent 38d3681 commit 290d426

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

services/powermanager/tests/PowerHalWrapperAidlTest.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,10 @@
2828
#include <unistd.h>
2929
#include <thread>
3030

31-
using aidl::android::hardware::power::Boost;
32-
using aidl::android::hardware::power::ChannelConfig;
33-
using aidl::android::hardware::power::CpuHeadroomParams;
34-
using aidl::android::hardware::power::GpuHeadroomParams;
35-
using aidl::android::hardware::power::IPower;
36-
using aidl::android::hardware::power::IPowerHintSession;
37-
using aidl::android::hardware::power::Mode;
38-
using aidl::android::hardware::power::SessionConfig;
39-
using aidl::android::hardware::power::SessionTag;
40-
using aidl::android::hardware::power::SupportInfo;
31+
4132
using android::binder::Status;
4233

34+
using namespace aidl::android::hardware::power;
4335
using namespace android;
4436
using namespace android::power;
4537
using namespace std::chrono_literals;
@@ -81,6 +73,10 @@ class MockIPower : public IPower {
8173
(override));
8274
MOCK_METHOD(ndk::ScopedAStatus, getGpuHeadroomMinIntervalMillis, (int64_t* interval),
8375
(override));
76+
MOCK_METHOD(ndk::ScopedAStatus, sendCompositionData,
77+
(const std::vector<CompositionData>& in_data), (override));
78+
MOCK_METHOD(ndk::ScopedAStatus, sendCompositionUpdate,
79+
(const CompositionUpdate& in_update), (override));
8480
};
8581

8682
// -------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)