std::string ActionData;
std::string ActionDataTokens;
- if (TestEvent.CalendarAlarmData.size() > 0){
+ std::string TriggerData;
+ std::string TriggerRelated;
+ std::string TriggerValue;
+ std::string TriggerTokens;
- ActionData = TestEvent.CalendarAlarmData[0].AlarmAction;
-
- }
-
if (TestEvent.CalendarAlarmData.size() > 0){
+ ActionData = TestEvent.CalendarAlarmData[0].AlarmAction;
ActionDataTokens = TestEvent.CalendarAlarmData[0].AlarmActionTokens;
+ TriggerData = TestEvent.CalendarAlarmData[0].TriggerData;
+ TriggerRelated = TestEvent.CalendarAlarmData[0].TriggerRelated;
+ TriggerValue = TestEvent.CalendarAlarmData[0].TriggerValue;
+ TriggerTokens = TestEvent.CalendarAlarmData[0].TriggerTokens;
+
}
ASSERT_EQ("AUDIO", ActionData);
ASSERT_EQ("FUNKY=SOUNDS", ActionDataTokens);
-
+ ASSERT_EQ("20160220T160000Z", TriggerData);
+ ASSERT_EQ("END", TriggerRelated);
+ ASSERT_EQ("DATE-TIME", TriggerValue);
+ ASSERT_EQ("PUSH=BUTTON", TriggerTokens);
}
\ No newline at end of file