| Index: content/shell/test_runner/test_runner.cc
|
| diff --git a/content/shell/test_runner/test_runner.cc b/content/shell/test_runner/test_runner.cc
|
| index 3feadb7db1bd093ee2d0c77c9416cdfc96eb6824..c21435d517627f0a910fdd62dfbdc283a1e744f4 100644
|
| --- a/content/shell/test_runner/test_runner.cc
|
| +++ b/content/shell/test_runner/test_runner.cc
|
| @@ -184,7 +184,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
|
| bool allow_destination_subdomains);
|
| void RemoveSpellCheckResolvedCallback();
|
| void RemoveWebPageOverlay();
|
| - void ResetDeviceLight();
|
| void ResetTestHelperControllers();
|
| void ResolveBeforeInstallPromptPromise(const std::string& platform);
|
| void RunIdleTasks(v8::Local<v8::Function> callback);
|
| @@ -223,7 +222,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
|
| v8::Local<v8::Value> origin);
|
| void SetJavaScriptCanAccessClipboard(bool can_access);
|
| void SetMIDIAccessorResult(bool result);
|
| - void SetMockDeviceLight(double value);
|
| void SetMockDeviceMotion(gin::Arguments* args);
|
| void SetMockDeviceOrientation(gin::Arguments* args);
|
| void SetMockScreenOrientation(const std::string& orientation);
|
| @@ -506,7 +504,6 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
|
| &TestRunnerBindings::RemoveSpellCheckResolvedCallback)
|
| .SetMethod("removeWebPageOverlay",
|
| &TestRunnerBindings::RemoveWebPageOverlay)
|
| - .SetMethod("resetDeviceLight", &TestRunnerBindings::ResetDeviceLight)
|
| .SetMethod("resetTestHelperControllers",
|
| &TestRunnerBindings::ResetTestHelperControllers)
|
| .SetMethod("resolveBeforeInstallPromptPromise",
|
| @@ -569,7 +566,6 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
|
| &TestRunnerBindings::SetMIDIAccessorResult)
|
| .SetMethod("setMainFrameIsFirstResponder",
|
| &TestRunnerBindings::NotImplemented)
|
| - .SetMethod("setMockDeviceLight", &TestRunnerBindings::SetMockDeviceLight)
|
| .SetMethod("setMockDeviceMotion",
|
| &TestRunnerBindings::SetMockDeviceMotion)
|
| .SetMethod("setMockDeviceOrientation",
|
| @@ -919,17 +915,6 @@ bool TestRunnerBindings::DisableAutoResizeMode(int new_width, int new_height) {
|
| return false;
|
| }
|
|
|
| -void TestRunnerBindings::SetMockDeviceLight(double value) {
|
| - if (!runner_)
|
| - return;
|
| - runner_->SetMockDeviceLight(value);
|
| -}
|
| -
|
| -void TestRunnerBindings::ResetDeviceLight() {
|
| - if (runner_)
|
| - runner_->ResetDeviceLight();
|
| -}
|
| -
|
| void TestRunnerBindings::SetMockDeviceMotion(gin::Arguments* args) {
|
| if (!runner_)
|
| return;
|
| @@ -1699,7 +1684,6 @@ void TestRunner::Reset() {
|
| delegate_->DeleteAllCookies();
|
| delegate_->SetBluetoothManualChooser(false);
|
| delegate_->ResetPermissions();
|
| - ResetDeviceLight();
|
| }
|
|
|
| dump_as_audio_ = false;
|
| @@ -2215,14 +2199,6 @@ bool TestRunner::DisableAutoResizeMode(int new_width, int new_height) {
|
| return true;
|
| }
|
|
|
| -void TestRunner::SetMockDeviceLight(double value) {
|
| - delegate_->SetDeviceLightData(value);
|
| -}
|
| -
|
| -void TestRunner::ResetDeviceLight() {
|
| - delegate_->SetDeviceLightData(-1);
|
| -}
|
| -
|
| void TestRunner::SetMockDeviceMotion(bool has_acceleration_x,
|
| double acceleration_x,
|
| bool has_acceleration_y,
|
|
|