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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 kPlaying, | 771 kPlaying, |
772 }; | 772 }; |
773 | 773 |
774 enum StopOrError { | 774 enum StopOrError { |
775 kStop, | 775 kStop, |
776 kError, | 776 kError, |
777 kErrorAndStop, | 777 kErrorAndStop, |
778 }; | 778 }; |
779 | 779 |
780 PipelineTeardownTest() {} | 780 PipelineTeardownTest() {} |
781 virtual ~PipelineTeardownTest() {} | 781 ~PipelineTeardownTest() override {} |
782 | 782 |
783 void RunTest(TeardownState state, StopOrError stop_or_error) { | 783 void RunTest(TeardownState state, StopOrError stop_or_error) { |
784 switch (state) { | 784 switch (state) { |
785 case kInitDemuxer: | 785 case kInitDemuxer: |
786 case kInitRenderer: | 786 case kInitRenderer: |
787 DoInitialize(state, stop_or_error); | 787 DoInitialize(state, stop_or_error); |
788 break; | 788 break; |
789 | 789 |
790 case kFlushing: | 790 case kFlushing: |
791 case kSeeking: | 791 case kSeeking: |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 | 993 |
994 INSTANTIATE_TEARDOWN_TEST(Error, InitDemuxer); | 994 INSTANTIATE_TEARDOWN_TEST(Error, InitDemuxer); |
995 INSTANTIATE_TEARDOWN_TEST(Error, InitRenderer); | 995 INSTANTIATE_TEARDOWN_TEST(Error, InitRenderer); |
996 INSTANTIATE_TEARDOWN_TEST(Error, Flushing); | 996 INSTANTIATE_TEARDOWN_TEST(Error, Flushing); |
997 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); | 997 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); |
998 INSTANTIATE_TEARDOWN_TEST(Error, Playing); | 998 INSTANTIATE_TEARDOWN_TEST(Error, Playing); |
999 | 999 |
1000 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); | 1000 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); |
1001 | 1001 |
1002 } // namespace media | 1002 } // namespace media |
OLD | NEW |