blob: 6c7f5d624f256ae560ed7fb077cee144aa537eb6 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_VAAPI_TEST_MACROS_H_
#define MEDIA_GPU_VAAPI_TEST_MACROS_H_
#include "base/logging.h"
#define VA_LOG_ASSERT(va_error, name) \
LOG_ASSERT((va_error) == VA_STATUS_SUCCESS) \
<< name << " failed, VA error: " << vaErrorStr(va_error);
#endif // MEDIA_GPU_VAAPI_TEST_MACROS_H_