blob: 657a46374d56fe92ad477b52e111abff10e5e894 [file] [log] [blame]
Daniel Nicoarad47f4a92017-05-30 15:38:30 -04001/*
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
22namespace android {
23namespace hardware {
24namespace graphics {
25namespace composer {
26namespace V2_1 {
27namespace tests {
28
29// A command parser that checks that no error nor unexpected commands are
30// returned.
31class 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