OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/path_service.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "media/base/mock_filter_host.h" | 11 #include "media/base/mock_filter_host.h" |
11 #include "media/base/mock_filters.h" | 12 #include "media/base/mock_filters.h" |
12 #include "media/filters/file_data_source.h" | 13 #include "media/filters/file_data_source.h" |
13 | 14 |
14 using ::testing::NiceMock; | 15 using ::testing::NiceMock; |
15 using ::testing::StrictMock; | 16 using ::testing::StrictMock; |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 StrictMock<MockFilterCallback> callback; | 105 StrictMock<MockFilterCallback> callback; |
105 EXPECT_CALL(callback, OnFilterCallback()); | 106 EXPECT_CALL(callback, OnFilterCallback()); |
106 EXPECT_CALL(callback, OnCallbackDestroyed()); | 107 EXPECT_CALL(callback, OnCallbackDestroyed()); |
107 const base::TimeDelta kZero; | 108 const base::TimeDelta kZero; |
108 | 109 |
109 scoped_refptr<FileDataSource> filter = new FileDataSource(); | 110 scoped_refptr<FileDataSource> filter = new FileDataSource(); |
110 filter->Seek(kZero, callback.NewCallback()); | 111 filter->Seek(kZero, callback.NewCallback()); |
111 } | 112 } |
112 | 113 |
113 } // namespace media | 114 } // namespace media |
OLD | NEW |