blob: cfc24a4f0bffa9d8d629ad7e1a1384ba74cb43c0 [file] [log] [blame]
Andrew Sculle53c1752018-10-15 13:15:01 +01001/*
2 * Copyright 2018 Google LLC
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 Scull93753872018-11-16 16:47:57 +000017/*
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 Sculle53c1752018-10-15 13:15:01 +010023extern "C" {
24#include "hf/api.h"
25}
26
Andrew Sculle53c1752018-10-15 13:15:01 +010027namespace
28{
29using ::testing::Eq;
30
31TEST(api, vm_get_count)
32{
33 EXPECT_THAT(api_vm_get_count(), Eq(0));
34}
35
36} /* namespace */