blob: d2760a3bb5ab9af9c6919785bdaaa9caf0a5950c [file] [log] [blame]
// Copyright 2017 The Fuchsia 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 "helper/platform_device_helper.h"
#include "magma_util/dlog.h"
#include "magma_util/macros.h"
#include "platform_device.h"
#include "gtest/gtest.h"
TEST(MagmaUtil, PlatformDevice)
{
magma::PlatformDevice* platform_device = TestPlatformDevice::GetInstance();
ASSERT_NE(nullptr, platform_device);
auto platform_mmio =
platform_device->CpuMapMmio(0, magma::PlatformMmio::CACHE_POLICY_UNCACHED_DEVICE);
EXPECT_NE(nullptr, platform_mmio.get());
}