Andrew Scull | e53c175 | 2018-10-15 13:15:01 +0100 | [diff] [blame] | 1 | /* |
Andrew Walbran | 692b325 | 2019-03-07 15:51:31 +0000 | [diff] [blame] | 2 | * Copyright 2018 The Hafnium Authors. |
Andrew Scull | e53c175 | 2018-10-15 13:15:01 +0100 | [diff] [blame] | 3 | * |
Andrew Walbran | e959ec1 | 2020-06-17 15:01:09 +0100 | [diff] [blame] | 4 | * 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 Scull | e53c175 | 2018-10-15 13:15:01 +0100 | [diff] [blame] | 7 | */ |
| 8 | |
Andrew Scull | 9375387 | 2018-11-16 16:47:57 +0000 | [diff] [blame] | 9 | /* |
| 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 Scull | e53c175 | 2018-10-15 13:15:01 +0100 | [diff] [blame] | 15 | extern "C" { |
| 16 | #include "hf/api.h" |
| 17 | } |
| 18 | |
Andrew Scull | e53c175 | 2018-10-15 13:15:01 +0100 | [diff] [blame] | 19 | namespace |
| 20 | { |
| 21 | using ::testing::Eq; |
| 22 | |
| 23 | TEST(api, vm_get_count) |
| 24 | { |
| 25 | EXPECT_THAT(api_vm_get_count(), Eq(0)); |
| 26 | } |
| 27 | |
| 28 | } /* namespace */ |