| // Copyright 2022 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 <gtest/gtest.h> |
| |
| // Contains a list of macros convertion between zxtest and gtest |
| #define EXPECT_NOT_OK(val) EXPECT_NE(ZX_OK, (val)) |
| #define EXPECT_OK(val) EXPECT_EQ(ZX_OK, (val)) |
| #define EXPECT_NOT_NULL(val) EXPECT_NE(nullptr, (val)) |
| #define EXPECT_BYTES_EQ(src1, src2, sz) EXPECT_EQ(0, std::memcmp((src1), (src2), (sz))) |
| #define ASSERT_NOT_NULL(val) ASSERT_NE(nullptr, (val)) |
| #define ASSERT_OK(val) ASSERT_EQ(ZX_OK, (val)) |
| #define ASSERT_NULL(val) ASSERT_EQ(nullptr, (val)) |