#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;
}