910e62b5创建于 1月15日历史提交
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/gpu/android/mock_device_info.h"

#include "base/android/android_info.h"

using ::testing::_;
using ::testing::Return;

namespace media {

MockDeviceInfo::MockDeviceInfo() {
  ON_CALL(*this, SdkVersion())
      .WillByDefault(
          Return(base::android::android_info::SDK_VERSION_MARSHMALLOW));
  ON_CALL(*this, IsVp8DecoderAvailable()).WillByDefault(Return(true));
  ON_CALL(*this, IsDecoderKnownUnaccelerated(_)).WillByDefault(Return(false));
  ON_CALL(*this, CodecNeedsFlushWorkaround(_)).WillByDefault(Return(false));
}

MockDeviceInfo::~MockDeviceInfo() = default;

}  // namespace media