1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14

media / gpu / vaapi / test / macros.h [blame]

// Copyright 2020 The Chromium Authors
// 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_