diff options
author | Hangyu Kuang <hkuang@google.com> | 2019-04-16 14:38:57 -0700 |
---|---|---|
committer | Hangyu Kuang <hkuang@google.com> | 2019-04-19 14:07:51 -0700 |
commit | e4ac05b6892711fa43eb1d59c7846deb20026ae7 (patch) | |
tree | 1205592b44f27012cc8f397763719f0fd3b4f2a8 /media/eco/tests/EcoSessionTest.cpp | |
parent | d8104e370b890f3d7a43282f13d4855847a318cb (diff) | |
download | av-e4ac05b6892711fa43eb1d59c7846deb20026ae7.tar.gz |
ECOService: Add ECOService implementation.
Also add unit test for it.
Bug: 117877984
Test: Unit test.
Change-Id: I5900c2bc628d850278bf8d742d09fb15cff3c078
Diffstat (limited to 'media/eco/tests/EcoSessionTest.cpp')
-rw-r--r-- | media/eco/tests/EcoSessionTest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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. |