| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/memory_mapped_file.h" | 9 #include "base/files/memory_mapped_file.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 test_stream_.requested_profile, | 372 test_stream_.requested_profile, |
| 373 base::Bind(&VEAClient::HandleEncodedFrame, base::Unretained(this))); | 373 base::Bind(&VEAClient::HandleEncodedFrame, base::Unretained(this))); |
| 374 | 374 |
| 375 CHECK(validator_.get()); | 375 CHECK(validator_.get()); |
| 376 | 376 |
| 377 if (save_to_file_) { | 377 if (save_to_file_) { |
| 378 CHECK(!test_stream_.out_filename.empty()); | 378 CHECK(!test_stream_.out_filename.empty()); |
| 379 base::FilePath out_filename(test_stream_.out_filename); | 379 base::FilePath out_filename(test_stream_.out_filename); |
| 380 // This creates or truncates out_filename. | 380 // This creates or truncates out_filename. |
| 381 // Without it, AppendToFile() will not work. | 381 // Without it, AppendToFile() will not work. |
| 382 EXPECT_EQ(0, file_util::WriteFile(out_filename, NULL, 0)); | 382 EXPECT_EQ(0, base::WriteFile(out_filename, NULL, 0)); |
| 383 } | 383 } |
| 384 | 384 |
| 385 thread_checker_.DetachFromThread(); | 385 thread_checker_.DetachFromThread(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 VEAClient::~VEAClient() { CHECK(!has_encoder()); } | 388 VEAClient::~VEAClient() { CHECK(!has_encoder()); } |
| 389 | 389 |
| 390 void VEAClient::CreateEncoder() { | 390 void VEAClient::CreateEncoder() { |
| 391 DCHECK(thread_checker_.CalledOnValidThread()); | 391 DCHECK(thread_checker_.CalledOnValidThread()); |
| 392 CHECK(!has_encoder()); | 392 CHECK(!has_encoder()); |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 } | 763 } |
| 764 if (it->first == "v" || it->first == "vmodule") | 764 if (it->first == "v" || it->first == "vmodule") |
| 765 continue; | 765 continue; |
| 766 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; | 766 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; |
| 767 } | 767 } |
| 768 | 768 |
| 769 base::ShadowingAtExitManager at_exit_manager; | 769 base::ShadowingAtExitManager at_exit_manager; |
| 770 | 770 |
| 771 return RUN_ALL_TESTS(); | 771 return RUN_ALL_TESTS(); |
| 772 } | 772 } |
| OLD | NEW |