Code::Blocks
SVN r11506
plugins
debuggergdb
debuggergdb_test_parser_cdb.cpp
Go to the documentation of this file.
1
#include "
debuggergdb_test_common.h
"
2
3
#include "
parsewatchvalue.h
"
4
5
SUITE
(CDBWatchParser)
6
{
7
8
TEST(CDBSingleLineStructPointer)
9
{
10
cb::shared_ptr<GDBWatch> w(
new
GDBWatch
(
wxT
(
"t"
)));
11
CHECK(
ParseCDBWatchValue
(w,
wxT
(
"struct t * 0x123456"
)));
12
CHECK_EQUAL(
wxT
(
"t=0x123456"
), *w);
13
}
14
15
TEST(CDBSingleLineClassPointer)
16
{
17
cb::shared_ptr<GDBWatch> w(
new
GDBWatch
(
wxT
(
"t"
)));
18
CHECK(
ParseCDBWatchValue
(w,
wxT
(
"class t * 0x123456"
)));
19
CHECK_EQUAL(
wxT
(
"t=0x123456"
), *w);
20
}
21
22
}
// SUITE(CDBWatchParser)
23
GDBWatch
Definition:
debugger_defs.h:212
parsewatchvalue.h
wxT
#define wxT(string)
debuggergdb_test_common.h
SUITE
SUITE(CDBWatchParser)
Definition:
debuggergdb_test_parser_cdb.cpp:5
ParseCDBWatchValue
bool ParseCDBWatchValue(cb::shared_ptr< GDBWatch > watch, wxString const &value)
Definition:
parsewatchvalue.cpp:847
Generated by
1.8.13