1 #include "gtest/gtest.h" 2 #include "gmock/gmock.h" 10 #define Stringify(s) Stringifyx(s) 11 #define Stringifyx(s) #s 16 class RQ_OBJECTTester : public TQObject { \ 18 RQ_OBJECT("RQ_OBJECTTester"); \ 22 void SetValue(Int_t value) \ 25 if (value != fValue) { \ 27 Emit("SetValue(Int_t)", fValue); \ 30 void PrintValue() const { printf("value=%d\n", fValue); } \ 31 Int_t GetValue() const { return fValue; } \ 41 a.Connect(
"SetValue(Int_t)",
"RQ_OBJECTTester", &b,
"SetValue(Int_t)");
43 EXPECT_EQ(0, b.GetValue());
46 EXPECT_EQ(1, b.GetValue());
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b