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

Unified Diff: content/shell/renderer/test_runner/test_runner.cc

Issue 784873004: Push API: delete MockWebPushClient [switchover 2/6] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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
Index: content/shell/renderer/test_runner/test_runner.cc
diff --git a/content/shell/renderer/test_runner/test_runner.cc b/content/shell/renderer/test_runner/test_runner.cc
index 04fffe85c8291b64db05cbced6c1e4c75b6069cd..7ecdc362f971e474194c57cc2f978c998255ee33 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -11,7 +11,6 @@
#include "content/shell/common/test_runner/test_preferences.h"
#include "content/shell/renderer/binding_helpers.h"
#include "content/shell/renderer/test_runner/mock_credential_manager_client.h"
-#include "content/shell/renderer/test_runner/mock_web_push_client.h"
#include "content/shell/renderer/test_runner/mock_web_speech_recognizer.h"
#include "content/shell/renderer/test_runner/test_interfaces.h"
#include "content/shell/renderer/test_runner/web_permissions.h"
@@ -293,9 +292,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
v8::Handle<v8::Function> callback);
void SetCustomTextOutput(std::string output);
void SetViewSourceForFrame(const std::string& name, bool enabled);
- void SetMockPushClientSuccess(const std::string& endpoint,
- const std::string& registration_id);
- void SetMockPushClientError(const std::string& message);
void SetPushMessagingPermission(const std::string& origin, bool allowed);
void ClearPushMessagingPermissions();
void SetBluetoothMockDataSet(const std::string& dataset_name);
@@ -541,10 +537,6 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
&TestRunnerBindings::SetCustomTextOutput)
.SetMethod("setViewSourceForFrame",
&TestRunnerBindings::SetViewSourceForFrame)
- .SetMethod("setMockPushClientSuccess",
- &TestRunnerBindings::SetMockPushClientSuccess)
- .SetMethod("setMockPushClientError",
- &TestRunnerBindings::SetMockPushClientError)
.SetMethod("setPushMessagingPermission",
&TestRunnerBindings::SetPushMessagingPermission)
.SetMethod("clearPushMessagingPermissions",
@@ -1408,20 +1400,6 @@ void TestRunnerBindings::SetViewSourceForFrame(const std::string& name,
}
}
-void TestRunnerBindings::SetMockPushClientSuccess(
- const std::string& endpoint,
- const std::string& registration_id) {
- if (!runner_)
- return;
- runner_->SetMockPushClientSuccess(endpoint, registration_id);
-}
-
-void TestRunnerBindings::SetMockPushClientError(const std::string& message) {
- if (!runner_)
- return;
- runner_->SetMockPushClientError(message);
-}
-
void TestRunnerBindings::SetPushMessagingPermission(const std::string& origin,
bool allowed) {
if (runner_)
@@ -2926,15 +2904,6 @@ void TestRunner::CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task,
InvokeCallback(task.Pass());
}
-void TestRunner::SetMockPushClientSuccess(const std::string& endpoint,
- const std::string& registration_id) {
- proxy_->GetPushClientMock()->SetMockSuccessValues(endpoint, registration_id);
-}
-
-void TestRunner::SetMockPushClientError(const std::string& message) {
- proxy_->GetPushClientMock()->SetMockErrorValues(message);
-}
-
void TestRunner::SetPushMessagingPermission(const GURL& origin, bool allowed) {
delegate_->SetPushMessagingPermission(origin, allowed);
}
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.h ('k') | content/shell/renderer/test_runner/web_frame_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698