Lines Matching refs:MiscWriter
42 ASSERT_TRUE(MiscWriter::WriteMiscPartitionVendorSpace(zeros.data(), zeros.size(), 0, &err)) in TearDown()
48 std::unique_ptr<MiscWriter> misc_writer_;
53 ASSERT_TRUE(MiscWriter::OffsetAndSizeInVendorSpace(offset, expected.size())); in CheckMiscPartitionVendorSpaceContent()
67 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetDarkThemeFlag); in TEST_F()
73 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearDarkThemeFlag); in TEST_F()
80 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetDarkThemeFlag); in TEST_F()
86 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearDarkThemeFlag); in TEST_F()
93 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetSotaFlag); in TEST_F()
108 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearSotaFlag); in TEST_F()
115 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetMaxRamSize, "8192"); in TEST_F()
116 size_t offset = MiscWriter::kMaxRamSizeOffsetInVendorSpace; in TEST_F()
118 std::string expected = std::string(MiscWriter::kMaxRamSize) + "8192"; in TEST_F()
121 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearMaxRamSize); in TEST_F()
129 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetDisplayMode, displayMode); in TEST_F()
133 CheckMiscPartitionVendorSpaceContent(MiscWriter::kDisplayModeOffsetInVendorSpace, expected); in TEST_F()
135 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearDisplayMode); in TEST_F()
138 CheckMiscPartitionVendorSpaceContent(MiscWriter::kDisplayModeOffsetInVendorSpace, zeros); in TEST_F()
145 MiscWriter::WriteMiscPartitionVendorSpace(kTestMessage.data(), kTestMessage.size(), 0, &err)); in TEST_F()
150 ASSERT_TRUE(MiscWriter::WriteMiscPartitionVendorSpace("\x00\x00", 2, 5, &err)); in TEST_F()
156 ASSERT_TRUE(MiscWriter::WriteMiscPartitionVendorSpace(kTestMessage.data(), kTestMessage.size(), in TEST_F()
160 ASSERT_FALSE(MiscWriter::WriteMiscPartitionVendorSpace(kTestMessage.data(), kTestMessage.size(), in TEST_F()
166 MiscWriter::WriteMiscPartitionVendorSpace(long_message.data(), long_message.size(), 0, &err)); in TEST_F()