<commit_before>// Copyright (c) 2009 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_BASE_MOCK_FFMPEG_H_
#define MEDIA_BASE_MOCK_FFMPEG_H_

#include "testing/gmock/include/gmock/gmock.h"

struct AVCodec;
struct AVCodecContext;
struct AVFrame;
struct AVPacket;
enum CodecID;

namespace media {

class MockFFmpeg {
 public:
  MOCK_METHOD1(AVCodecFindDecoder, AVCodec*(enum CodecID id));
  MOCK_METHOD2(AVCodecOpen, int(AVCodecContext* avctx, AVCodec* codec));
  MOCK_METHOD2(AVCodecThreadInit, int(AVCodecContext* avctx, int threads));

  // Setter/getter for the global instance of MockFFmpeg.
  static void set(MockFFmpeg* instance);<commit_msg>Adding in ffmpeg_common.h into header for definition of CodecID.<commit_after>// Copyright (c) 2009 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_BASE_MOCK_FFMPEG_H_
#define MEDIA_BASE_MOCK_FFMPEG_H_

// TODO(scherkus): See if we can remove ffmpeg_common from this file.
#include "media/filters/ffmpeg_common.h"

#include "testing/gmock/include/gmock/gmock.h"

namespace media {

class MockFFmpeg {
 public:
  MOCK_METHOD1(AVCodecFindDecoder, AVCodec*(enum CodecID id));
  MOCK_METHOD2(AVCodecOpen, int(AVCodecContext* avctx, AVCodec* codec));
  MOCK_METHOD2(AVCodecThreadInit, int(AVCodecContext* avctx, int threads));

  // Setter/getter for the global instance of MockFFmpeg.
  static void set(MockFFmpeg* instance);
{'fraction_non_alphanumeric': 0.08720200752823086, 'fraction_numerical': 0.00878293601003764, 'mean_word_length': 5.38, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5290991', 'n_tokens_mistral': 551, 'n_tokens_neox': 548, 'n_words': 159}