diff options
Diffstat (limited to 'libion/tests/ion_test_fixture.cpp')
-rw-r--r-- | libion/tests/ion_test_fixture.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/libion/tests/ion_test_fixture.cpp b/libion/tests/ion_test_fixture.cpp deleted file mode 100644 index 935fe5cb3..000000000 --- a/libion/tests/ion_test_fixture.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2013 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include <gtest/gtest.h> -#include <ion/ion.h> - -#include "ion_test_fixture.h" - -IonTest::IonTest() : ionfd(-1), ion_heaps() {} - -void IonTest::SetUp() { - ionfd = ion_open(); - ASSERT_GE(ionfd, 0); - - int heap_count; - int ret = ion_query_heap_cnt(ionfd, &heap_count); - ASSERT_EQ(ret, 0); - ASSERT_GT(heap_count, 0); - - ion_heaps.resize(heap_count, {}); - ret = ion_query_get_heaps(ionfd, heap_count, ion_heaps.data()); - ASSERT_EQ(ret, 0); -} - -void IonTest::TearDown() { - ion_close(ionfd); -} |