summaryrefslogtreecommitdiff
path: root/media/base/mock_data_source_host.h
blob: 914d0556136cf903d9ce95b34b9a0f1354777688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2012 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_DATA_SOURCE_HOST_H_
#define MEDIA_BASE_MOCK_DATA_SOURCE_HOST_H_

#include <string>

#include "media/base/data_source.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace media {

class MockDataSourceHost : public DataSourceHost {
 public:
  MockDataSourceHost();
  virtual ~MockDataSourceHost();

  // DataSourceHost implementation.
  MOCK_METHOD1(SetTotalBytes, void(int64 total_bytes));
  MOCK_METHOD2(AddBufferedByteRange, void(int64 start, int64 end));
  MOCK_METHOD2(AddBufferedTimeRange, void(base::TimeDelta start,
                                          base::TimeDelta end));

 private:
  DISALLOW_COPY_AND_ASSIGN(MockDataSourceHost);
};

}  // namespace media

#endif  // MEDIA_BASE_MOCK_DATA_SOURCE_HOST_H_