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 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Andrew Scull | 9375387 | 2018-11-16 16:47:57 +0000 | [diff] [blame] | 17 | /* |
| 18 | * This order of headers works around a libc++ issue which prevents |
| 19 | * "atomic" being included before "stdatomic.h". |
| 20 | */ |
| 21 | #include <gmock/gmock.h> |
| 22 | |
Andrew Scull | e53c175 | 2018-10-15 13:15:01 +0100 | [diff] [blame] | 23 | extern "C" { |
| 24 | #include "hf/api.h" |
| 25 | } |
| 26 | |
Andrew Scull | e53c175 | 2018-10-15 13:15:01 +0100 | [diff] [blame] | 27 | namespace |
| 28 | { |
| 29 | using ::testing::Eq; |
| 30 | |
| 31 | TEST(api, vm_get_count) |
| 32 | { |
| 33 | EXPECT_THAT(api_vm_get_count(), Eq(0)); |
| 34 | } |
| 35 | |
| 36 | } /* namespace */ |