blob: d75220513cb41ddc64d44618422f39747daefe44 [file] [log] [blame]
Ana Krulec0782b882019-10-15 17:34:54 -07001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <thread>
18#include "LayerTransactionTest.h"
19namespace android {
20
21using android::hardware::graphics::common::V1_1::BufferUsage;
22
23::testing::Environment* const binderEnv =
24 ::testing::AddGlobalTestEnvironment(new BinderEnvironment());
25
26/**
27 * Test class for setting display configs and passing around refresh rate ranges.
28 */
29class RefreshRateRangeTest : public ::testing::Test {
30protected:
31 void SetUp() override { mDisplayToken = SurfaceComposerClient::getInternalDisplayToken(); }
32
33 sp<IBinder> mDisplayToken;
34};
35
36TEST_F(RefreshRateRangeTest, helloWorldTest) {
37 status_t res = SurfaceComposerClient::setDesiredDisplayConfigSpecs(mDisplayToken, 0, 0, 0);
38 EXPECT_EQ(res, NO_ERROR);
39}
40} // namespace android