Code::Blocks  SVN r11506
debuggergdb_test_parser_cdb.cpp
Go to the documentation of this file.
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 
#define wxT(string)
SUITE(CDBWatchParser)
bool ParseCDBWatchValue(cb::shared_ptr< GDBWatch > watch, wxString const &value)