From e4ac05b6892711fa43eb1d59c7846deb20026ae7 Mon Sep 17 00:00:00 2001 From: Hangyu Kuang Date: Tue, 16 Apr 2019 14:38:57 -0700 Subject: ECOService: Add ECOService implementation. Also add unit test for it. Bug: 117877984 Test: Unit test. Change-Id: I5900c2bc628d850278bf8d742d09fb15cff3c078 --- media/eco/tests/EcoSessionTest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'media/eco/tests/EcoSessionTest.cpp') diff --git a/media/eco/tests/EcoSessionTest.cpp b/media/eco/tests/EcoSessionTest.cpp index e917331..901a22b 100644 --- a/media/eco/tests/EcoSessionTest.cpp +++ b/media/eco/tests/EcoSessionTest.cpp @@ -75,7 +75,8 @@ TEST_F(EcoSessionTest, TestConstructorWithInvalidParameters) { nullptr); // Expects failure as ECOService1.0 will only support up to 720P and camera recording case. - EXPECT_TRUE(createSession(1920 /* width */, 1080 /* height */, false /* isCameraRecording */) == nullptr); + EXPECT_TRUE(createSession(1920 /* width */, 1080 /* height */, false /* isCameraRecording */) == + nullptr); EXPECT_TRUE(createSession(1920 /* width */, -1 /* height */, true /* isCameraRecording */) == nullptr); @@ -246,7 +247,9 @@ TEST_F(EcoSessionTest, TestSessionWithProviderAndListenerSimpleTest) { }); // Inject the session stats into the ECOSession through fakeProvider. - SimpleEncoderConfig sessionEncoderConfig("google-avc", CodecTypeAVC, AVCProfileHigh, AVCLevel52, kTargetBitrateBps, kKeyFrameIntervalFrames, kFrameRate); + SimpleEncoderConfig sessionEncoderConfig("google-avc", CodecTypeAVC, AVCProfileHigh, AVCLevel52, + kTargetBitrateBps, kKeyFrameIntervalFrames, + kFrameRate); fakeProvider->injectSessionStats(sessionEncoderConfig.toEcoData(ECOData::DATA_TYPE_STATS)); // Wait as ECOService may take some time to process. -- cgit v1.2.3