• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2021 The libgav1 Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "examples/file_reader_test_common.h"
16 
17 #include <ostream>
18 
19 #include "examples/file_reader.h"
20 
21 namespace libgav1 {
22 
operator <<(std::ostream & stream,const FileReaderTestParameters & parameters)23 std::ostream& operator<<(std::ostream& stream,
24                          const FileReaderTestParameters& parameters) {
25   stream << "open_function="
26          << ((parameters.open_function == FileReader::Open) ? "FileReader"
27                                                             : "Unknown")
28          << ", file_name=" << parameters.file_name;
29   return stream;
30 }
31 
operator <<(std::ostream & stream,const FileReaderTestWithTimeStampsParameters & parameters)32 std::ostream& operator<<(
33     std::ostream& stream,
34     const FileReaderTestWithTimeStampsParameters& parameters) {
35   stream << "open_function="
36          << ((parameters.open_function == FileReader::Open) ? "FileReader"
37                                                             : "Unknown")
38          << ", file_name=" << parameters.file_name
39          << ", expected_last_timestamp=" << parameters.expected_last_timestamp;
40   return stream;
41 }
42 
43 }  // namespace libgav1
44