| 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);
|
| }
|
|
|