Home | History | Annotate | Download | only in tests

Lines Matching refs:Worker

6 #include "worker.h"
8 using android::Worker;
10 struct TestWorker : public Worker {
12 : Worker("test-worker", HAL_PRIORITY_URGENT_DISPLAY),
57 TestWorker worker;
60 worker.Init();
70 ASSERT_TRUE(worker.initialized());
72 int val = worker.value;
76 ASSERT_EQ(val, worker.value);
78 worker.Control(true);
82 worker.Lock();
83 val = worker.value;
85 ASSERT_EQ(val, worker.value);
86 worker.Unlock();
90 ASSERT_NE(val, worker.value);
92 worker.Control(false);
93 worker.Lock();
94 val = worker.value;
95 worker.Unlock();
99 ASSERT_EQ(val, worker.value);
101 worker.Exit();
102 ASSERT_FALSE(worker.initialized());
106 worker.Control(true);
109 worker.Exit();