Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc

Issue 2803983004: Fix mock expectation in SubresourceFilterComponentInstallerTest. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc
diff --git a/chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc b/chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc
index e653439d19d19aa9d0867f9802fe891725bea520..9c9dae1d278040a221a96cd4ef24a25ad7a7db4f 100644
--- a/chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc
+++ b/chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc
@@ -211,7 +211,9 @@ TEST_F(SubresourceFilterComponentInstallerTest,
subresource_filter::kActivationScopeNoSites);
std::unique_ptr<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());
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698