Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/FilterEngine.cpp

Issue 29453651: Noissue - fix typo "dowload" to "download" (n is absent) (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created June 1, 2017, 4:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/FilterEngine.cpp
diff --git a/test/FilterEngine.cpp b/test/FilterEngine.cpp
index 98283be7cfd39bd2b5797593346202915978c036..1d6401fe2bfaa12af9d5af2c2d59f982a7b4f40e 100644
--- a/test/FilterEngine.cpp
+++ b/test/FilterEngine.cpp
@@ -133,7 +133,7 @@ namespace
FilterEngine::CreationParameters createParams;
ConnectionTypes capturedConnectionTypes;
bool isConnectionAllowed;
- std::vector<std::function<void(bool)>> isSubscriptionDowloadAllowedCallbacks;
+ std::vector<std::function<void(bool)>> isSubscriptionDownloadAllowedCallbacks;
FilterEnginePtr filterEngine;
JsEnginePtr jsEngine;
@@ -150,10 +150,10 @@ namespace
createParams.preconfiguredPrefs.emplace("first_run_subscription_auto_select", jsEngine->NewValue(false));
- createParams.isSubscriptionDowloadAllowedCallback = [this](const std::string* allowedConnectionType,
- const std::function<void(bool)>& isSubscriptionDowloadAllowedCallback){
+ createParams.isSubscriptionDownloadAllowedCallback = [this](const std::string* allowedConnectionType,
+ const std::function<void(bool)>& isSubscriptionDownloadAllowedCallback){
capturedConnectionTypes.emplace_back(!!allowedConnectionType, allowedConnectionType ? *allowedConnectionType : std::string());
- isSubscriptionDowloadAllowedCallbacks.emplace_back(isSubscriptionDowloadAllowedCallback);
+ isSubscriptionDownloadAllowedCallbacks.emplace_back(isSubscriptionDownloadAllowedCallback);
};
}
@@ -180,11 +180,11 @@ namespace
// 'is subscription download allowed' callbacks;
DelayedTimer::ProcessImmediateTimers(timerTasks);
- for (const auto& isSubscriptionDowloadAllowedCallback : isSubscriptionDowloadAllowedCallbacks)
+ for (const auto& isSubscriptionDownloadAllowedCallback : isSubscriptionDownloadAllowedCallbacks)
{
- isSubscriptionDowloadAllowedCallback(isConnectionAllowed);
+ isSubscriptionDownloadAllowedCallback(isConnectionAllowed);
}
- isSubscriptionDowloadAllowedCallbacks.clear();
+ isSubscriptionDownloadAllowedCallbacks.clear();
{
auto ii_webRequest = std::find_if(webRequestTasks->begin(), webRequestTasks->end(), [&subscriptionUrl](const DelayedWebRequest::Task& task)->bool
@@ -938,7 +938,7 @@ namespace AA_ApiTest
TEST_F(FilterEngineIsSubscriptionDownloadAllowedTest, AbsentCallbackAllowsUpdating)
{
- createParams.isSubscriptionDowloadAllowedCallback = FilterEngine::IsConnectionAllowedAsyncCallback();
+ createParams.isSubscriptionDownloadAllowedCallback = FilterEngine::IsConnectionAllowedAsyncCallback();
auto subscription = EnsureExampleSubscriptionAndForceUpdate();
EXPECT_EQ("synchronize_ok", subscription.GetProperty("downloadStatus").AsString());
EXPECT_EQ(1u, subscription.GetProperty("filters").AsList().size());
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld