xref: /aosp_15_r20/external/deqp/executor/xeCommLink.cpp (revision 35238bce31c2a825756842865a792f8cf7f89930)
1 /*-------------------------------------------------------------------------
2  * drawElements Quality Program Test Executor
3  * ------------------------------------------
4  *
5  * Copyright 2014 The Android Open Source Project
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  *//*!
20  * \file
21  * \brief Communication link abstraction.
22  *//*--------------------------------------------------------------------*/
23 
24 #include "xeCommLink.hpp"
25 
26 namespace xe
27 {
28 
getCommLinkStateName(CommLinkState state)29 const char *getCommLinkStateName(CommLinkState state)
30 {
31     switch (state)
32     {
33     case COMMLINKSTATE_READY:
34         return "COMMLINKSTATE_READY";
35     case COMMLINKSTATE_TEST_PROCESS_LAUNCHING:
36         return "COMMLINKSTATE_PROCESS_LAUNCHING";
37     case COMMLINKSTATE_TEST_PROCESS_RUNNING:
38         return "COMMLINKSTATE_PROCESS_RUNNING";
39     case COMMLINKSTATE_TEST_PROCESS_FINISHED:
40         return "COMMLINKSTATE_FINISHED";
41     case COMMLINKSTATE_TEST_PROCESS_LAUNCH_FAILED:
42         return "COMMLINKSTATE_LAUNCH_FAILED";
43     case COMMLINKSTATE_ERROR:
44         return "COMMLINKSTATE_ERROR";
45     default:
46         DE_ASSERT(false);
47         return DE_NULL;
48     }
49 }
50 
CommLink(void)51 CommLink::CommLink(void)
52 {
53 }
54 
~CommLink(void)55 CommLink::~CommLink(void)
56 {
57 }
58 
59 } // namespace xe
60