Loading fs_mgr/liblp/builder_test.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ static void ResetPropertyFetcher() { IPropertyFetcher::OverrideForTesting(std::make_unique<NiceMock<MockPropertyFetcher>>()); } MockPropertyFetcher* GetMockedInstance() { MockPropertyFetcher* GetMockedPropertyFetcher() { return static_cast<MockPropertyFetcher*>(IPropertyFetcher::GetInstance()); } Loading Loading @@ -789,7 +789,7 @@ TEST_F(BuilderTest, ABExtents) { // A and B slots should be allocated from separate halves of the partition, // to mitigate allocating too many extents. (b/120433288) ON_CALL(*GetMockedInstance(), GetProperty("ro.boot.slot_suffix", _)) ON_CALL(*GetMockedPropertyFetcher(), GetProperty("ro.boot.slot_suffix", _)) .WillByDefault(Return("_a")); auto builder = MetadataBuilder::New(device_info, 65536, 2); Loading fs_mgr/liblp/io_test.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -668,7 +668,7 @@ TEST(liblp, AutoSlotSuffixing) { } TEST(liblp, UpdateRetrofit) { ON_CALL(*GetMockedInstance(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) ON_CALL(*GetMockedPropertyFetcher(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) .WillByDefault(Return(true)); unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); Loading Loading @@ -700,7 +700,7 @@ TEST(liblp, UpdateRetrofit) { } TEST(liblp, UpdateNonRetrofit) { ON_CALL(*GetMockedInstance(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) ON_CALL(*GetMockedPropertyFetcher(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) .WillByDefault(Return(false)); unique_fd fd = CreateFlashedDisk(); Loading fs_mgr/liblp/mock_property_fetcher.h +1 −1 Original line number Diff line number Diff line Loading @@ -44,4 +44,4 @@ class MockPropertyFetcher : public IPropertyFetcher { } // namespace fs_mgr } // namespace android android::fs_mgr::MockPropertyFetcher* GetMockedInstance(); android::fs_mgr::MockPropertyFetcher* GetMockedPropertyFetcher(); Loading
fs_mgr/liblp/builder_test.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ static void ResetPropertyFetcher() { IPropertyFetcher::OverrideForTesting(std::make_unique<NiceMock<MockPropertyFetcher>>()); } MockPropertyFetcher* GetMockedInstance() { MockPropertyFetcher* GetMockedPropertyFetcher() { return static_cast<MockPropertyFetcher*>(IPropertyFetcher::GetInstance()); } Loading Loading @@ -789,7 +789,7 @@ TEST_F(BuilderTest, ABExtents) { // A and B slots should be allocated from separate halves of the partition, // to mitigate allocating too many extents. (b/120433288) ON_CALL(*GetMockedInstance(), GetProperty("ro.boot.slot_suffix", _)) ON_CALL(*GetMockedPropertyFetcher(), GetProperty("ro.boot.slot_suffix", _)) .WillByDefault(Return("_a")); auto builder = MetadataBuilder::New(device_info, 65536, 2); Loading
fs_mgr/liblp/io_test.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -668,7 +668,7 @@ TEST(liblp, AutoSlotSuffixing) { } TEST(liblp, UpdateRetrofit) { ON_CALL(*GetMockedInstance(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) ON_CALL(*GetMockedPropertyFetcher(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) .WillByDefault(Return(true)); unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); Loading Loading @@ -700,7 +700,7 @@ TEST(liblp, UpdateRetrofit) { } TEST(liblp, UpdateNonRetrofit) { ON_CALL(*GetMockedInstance(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) ON_CALL(*GetMockedPropertyFetcher(), GetBoolProperty("ro.boot.dynamic_partitions_retrofit", _)) .WillByDefault(Return(false)); unique_fd fd = CreateFlashedDisk(); Loading
fs_mgr/liblp/mock_property_fetcher.h +1 −1 Original line number Diff line number Diff line Loading @@ -44,4 +44,4 @@ class MockPropertyFetcher : public IPropertyFetcher { } // namespace fs_mgr } // namespace android android::fs_mgr::MockPropertyFetcher* GetMockedInstance(); android::fs_mgr::MockPropertyFetcher* GetMockedPropertyFetcher();