Commit 403cd514 authored by sorin's avatar sorin Committed by Commit bot

Fix mock expectation in SubresourceFilterComponentInstallerTest.

This cleans up the output for SubresourceFilterComponentInstallerTest.TestComponentRegistrationWhenFeatureEnabled

[ RUN      ] SubresourceFilterComponentInstallerTest.TestComponentRegistrationWhenFeatureEnabled
[128216:55036:0407/120537.046:3889874656:ERROR:default_component_installer.cc(363)] Component registration failed for Subresource Filter Rules

Review-Url: https://codereview.chromium.org/2803983004
Cr-Commit-Position: refs/heads/master@{#462992}
parent c691ffcd
...@@ -211,7 +211,9 @@ TEST_F(SubresourceFilterComponentInstallerTest, ...@@ -211,7 +211,9 @@ TEST_F(SubresourceFilterComponentInstallerTest,
subresource_filter::kActivationScopeNoSites); subresource_filter::kActivationScopeNoSites);
std::unique_ptr<SubresourceFilterMockComponentUpdateService> std::unique_ptr<SubresourceFilterMockComponentUpdateService>
component_updater(new SubresourceFilterMockComponentUpdateService()); component_updater(new SubresourceFilterMockComponentUpdateService());
EXPECT_CALL(*component_updater, RegisterComponent(testing::_)).Times(1); EXPECT_CALL(*component_updater, RegisterComponent(testing::_))
.Times(1)
.WillOnce(testing::Return(true));
RegisterSubresourceFilterComponent(component_updater.get()); RegisterSubresourceFilterComponent(component_updater.get());
base::RunLoop().RunUntilIdle(); base::RunLoop().RunUntilIdle();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment