blob: b666bc40243ca802e80d6ffa246ba9bae34e4b6f [file] [log] [blame]
Andrew Sculle53c1752018-10-15 13:15:01 +01001/*
Andrew Walbran692b3252019-03-07 15:51:31 +00002 * Copyright 2018 The Hafnium Authors.
Andrew Sculle53c1752018-10-15 13:15:01 +01003 *
Andrew Walbrane959ec12020-06-17 15:01:09 +01004 * Use of this source code is governed by a BSD-style
5 * license that can be found in the LICENSE file or at
6 * https://opensource.org/licenses/BSD-3-Clause.
Andrew Sculle53c1752018-10-15 13:15:01 +01007 */
8
Andrew Scull93753872018-11-16 16:47:57 +00009/*
10 * This order of headers works around a libc++ issue which prevents
11 * "atomic" being included before "stdatomic.h".
12 */
13#include <gmock/gmock.h>
14
Andrew Sculle53c1752018-10-15 13:15:01 +010015extern "C" {
16#include "hf/api.h"
17}
18
Andrew Sculle53c1752018-10-15 13:15:01 +010019namespace
20{
21using ::testing::Eq;
22
23TEST(api, vm_get_count)
24{
25 EXPECT_THAT(api_vm_get_count(), Eq(0));
26}
27
28} /* namespace */