Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / debug_stub / test.h
1 /*
2  * Copyright 2010 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 #ifndef NATIVE_CLIENT_GDB_RSP_TEST_H_
7 #define NATIVE_CLIENT_GDB_RSP_TEST_H_ 1
8
9 #include <vector>
10
11 #include "native_client/src/trusted/debug_stub/abi.h"
12 #include "native_client/src/trusted/debug_stub/packet.h"
13 #include "native_client/src/trusted/debug_stub/platform.h"
14 #include "native_client/src/trusted/debug_stub/session.h"
15 #include "native_client/src/trusted/debug_stub/target.h"
16 #include "native_client/src/trusted/debug_stub/transport.h"
17 #include "native_client/src/trusted/debug_stub/util.h"
18
19 typedef void (*PacketFunc_t)(void *ctx,
20                              gdb_rsp::Packet *wr,
21                              gdb_rsp::Packet *rd);
22
23 int VerifyPacket(gdb_rsp::Packet *wr, gdb_rsp::Packet *rd,
24                  void *ctx, PacketFunc_t tx);
25
26 int TestAbi();
27 int TestPacket();
28 int TestSession();
29 int TestUtil();
30
31 #endif  // NATIVE_CLIENT_GDB_RSP_TEST_H_
32