Home
last modified time | relevance | path

Searched refs:TestUtils (Results 1 – 6 of 6) sorted by relevance

/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_service_test.cpp43 TestUtils::InitTest(); in SetUpTestCase()
51 TestUtils::ResetOnline(); in TearDownTestCase()
72 TestUtils::WriteMock("/data/local/tmp/battery/capacity", "50");
94 TestUtils::WriteMock("/data/local/tmp/battery/status", "Charging");
117 TestUtils::WriteMock("/data/local/tmp/battery/health", "Good");
138 TestUtils::WriteMock("/data/local/tmp/battery/present", "0");
159 TestUtils::WriteMock("/data/local/tmp/battery/voltage_avg", "4123456");
160 TestUtils::WriteMock("/data/local/tmp/battery/voltage_now", "4123456");
182 TestUtils::WriteMock("/data/local/tmp/battery/temp", "333");
204 TestUtils::WriteMock("/data/local/tmp/ohos-fgu/technology", "Li");
[all …]
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp46 TestUtils::InitTest(); in SetUpTestCase()
54 TestUtils::ResetOnline(); in TearDownTestCase()
77 TestUtils::WriteMock("/data/local/tmp/battery/capacity", "22");
101 TestUtils::WriteMock("/data/local/tmp/battery/status", "Not charging");
126 TestUtils::WriteMock("/data/local/tmp/battery/health", "Cold");
150 TestUtils::WriteMock("/data/local/tmp/battery/present", "0");
174 TestUtils::WriteMock("/data/local/tmp/battery/voltage_avg", "4654321");
175 TestUtils::WriteMock("/data/local/tmp/battery/voltage_now", "4654321");
199 TestUtils::WriteMock("/data/local/tmp/battery/temp", "222");
223 TestUtils::WriteMock("/data/local/tmp/ohos-fgu/technology", "H2");
[all …]
/base/powermgr/battery_manager/utils/native/src/
Dtest_utils.cpp47 void TestUtils::WriteMock(const std::string& path, const std::string content) in WriteMock()
58 void TestUtils::InitTest() in InitTest()
66 void TestUtils::ResetOnline() in ResetOnline()
/base/powermgr/battery_manager/utils/native/include/
Dtest_utils.h23 class TestUtils {
/base/update/packaging_tools/test/
Dtest_inc.py22 class TestUtils(unittest.TestCase): class
Dtest_utils.py37 class TestUtils(unittest.TestCase): class