Daniel Nicoara | d47f4a9 | 2017-05-30 15:38:30 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef TEST_COMMAND_READER_H |
| 18 | #define TEST_COMMAND_READER_H |
| 19 | |
| 20 | #include <IComposerCommandBuffer.h> |
| 21 | |
| 22 | namespace android { |
| 23 | namespace hardware { |
| 24 | namespace graphics { |
| 25 | namespace composer { |
| 26 | namespace V2_1 { |
| 27 | namespace tests { |
| 28 | |
| 29 | // A command parser that checks that no error nor unexpected commands are |
| 30 | // returned. |
| 31 | class TestCommandReader : public CommandReaderBase { |
| 32 | public: |
| 33 | // Parse all commands in the return command queue. Call GTEST_FAIL() for |
| 34 | // unexpected errors or commands. |
| 35 | void parse(); |
| 36 | }; |
| 37 | |
| 38 | } // namespace tests |
| 39 | } // namespace V2_1 |
| 40 | } // namespace composer |
| 41 | } // namespace graphics |
| 42 | } // namespace hardware |
| 43 | } // namespace android |
| 44 | |
| 45 | #endif // TEST_COMMAND_READER_H |