blob: c00c56d500d2a9dae73df03bc908cffcc2529e31 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <android/hidl/memory/1.0/IMapper.h>
#include <android/hidl/memory/1.0/IMemory.h>
#include <gtest/gtest.h>
using ::android::sp;
using ::android::hardware::hidl_memory;
using ::android::hidl::memory::V1_0::IMapper;
using ::android::hidl::memory::V1_0::IMemory;
TEST(AshmemMapperTest, EmptyMemory) {
auto mapper = IMapper::getService("ashmem", false);
ASSERT_NE(nullptr, mapper);
}