OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stdint.h> |
| 6 |
5 #include <string> | 7 #include <string> |
6 | 8 |
7 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
8 #include "base/bind.h" | 10 #include "base/bind.h" |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
10 #include "base/path_service.h" | 13 #include "base/path_service.h" |
11 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
12 #include "media/base/test_helpers.h" | 15 #include "media/base/test_helpers.h" |
13 #include "media/filters/file_data_source.h" | 16 #include "media/filters/file_data_source.h" |
14 | 17 |
15 using ::testing::NiceMock; | 18 using ::testing::NiceMock; |
16 using ::testing::StrictMock; | 19 using ::testing::StrictMock; |
17 | 20 |
18 namespace media { | 21 namespace media { |
19 | 22 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 77 |
75 EXPECT_CALL(handler, ReadCB(5)); | 78 EXPECT_CALL(handler, ReadCB(5)); |
76 data_source.Read(5, 10, ten_bytes, base::Bind( | 79 data_source.Read(5, 10, ten_bytes, base::Bind( |
77 &ReadCBHandler::ReadCB, base::Unretained(&handler))); | 80 &ReadCBHandler::ReadCB, base::Unretained(&handler))); |
78 EXPECT_EQ('5', ten_bytes[0]); | 81 EXPECT_EQ('5', ten_bytes[0]); |
79 | 82 |
80 data_source.Stop(); | 83 data_source.Stop(); |
81 } | 84 } |
82 | 85 |
83 } // namespace media | 86 } // namespace media |
OLD | NEW |