summaryrefslogtreecommitdiff
path: root/cmds/incident_helper/tests/KernelWakesParser_test.cpp
diff options
context:
space:
mode:
authorYi Jin <jinyithu@google.com>2018-01-24 21:48:36 -0800
committerYi Jin <jinyithu@google.com>2018-02-13 18:05:32 -0800
commit51d4c54eba8dd613dd0550c6633a747b53e0ce0a (patch)
treedaaac252c97315bb5870eb618b2aa84d1af62ea9 /cmds/incident_helper/tests/KernelWakesParser_test.cpp
parent85a6db68f1860bbaacc1cc21e29c4f61aabe0abb (diff)
Make the platform proto naming consistent, Part 1
Change proto names in incident_helper Bug: 72474563 Test: atest incident_helper_test Change-Id: Ia416ef9726a19d247e62d7de1028874408ec53f1
Diffstat (limited to 'cmds/incident_helper/tests/KernelWakesParser_test.cpp')
-rw-r--r--cmds/incident_helper/tests/KernelWakesParser_test.cpp12
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);