diff options
Diffstat (limited to 'cmds/incident_helper/tests/KernelWakesParser_test.cpp')
-rw-r--r-- | cmds/incident_helper/tests/KernelWakesParser_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cmds/incident_helper/tests/KernelWakesParser_test.cpp b/cmds/incident_helper/tests/KernelWakesParser_test.cpp index a98c62bd6024..f92d81361eab 100644 --- a/cmds/incident_helper/tests/KernelWakesParser_test.cpp +++ b/cmds/incident_helper/tests/KernelWakesParser_test.cpp @@ -52,14 +52,14 @@ protected: TEST_F(KernelWakesParserTest, Short) { const string testFile = kTestDataPath + "kernel_wakeups_short.txt"; KernelWakesParser parser; - KernelWakeSources expected; + KernelWakeSourcesProto expected; - WakeupSourceProto* record1 = expected.add_wakeup_sources(); + KernelWakeSourcesProto::WakeupSource* record1 = expected.add_wakeup_sources(); record1->set_name("ab"); record1->set_active_count(8); record1->set_last_change(123456123456LL); - WakeupSourceProto* record2 = expected.add_wakeup_sources(); + KernelWakeSourcesProto::WakeupSource* record2 = expected.add_wakeup_sources(); record2->set_name("df"); record2->set_active_count(143); record2->set_last_change(0LL); @@ -76,9 +76,9 @@ TEST_F(KernelWakesParserTest, Short) { TEST_F(KernelWakesParserTest, Normal) { const string testFile = kTestDataPath + "kernel_wakeups.txt"; KernelWakesParser parser; - KernelWakeSources expected; + KernelWakeSourcesProto expected; - WakeupSourceProto* record1 = expected.add_wakeup_sources(); + KernelWakeSourcesProto::WakeupSource* record1 = expected.add_wakeup_sources(); record1->set_name("ipc000000ab_ATFWD-daemon"); record1->set_active_count(8); record1->set_event_count(8); @@ -90,7 +90,7 @@ TEST_F(KernelWakesParserTest, Normal) { record1->set_last_change(131348LL); record1->set_prevent_suspend_time(0LL); - WakeupSourceProto* record2 = expected.add_wakeup_sources(); + KernelWakeSourcesProto::WakeupSource* record2 = expected.add_wakeup_sources(); record2->set_name("ipc000000aa_ATFWD-daemon"); record2->set_active_count(143); record2->set_event_count(143); |