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

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

Issue 477343002: Revert "Add IPC benchmarking API to Blink TestRunner" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « content/shell/renderer/test_runner/test_runner.h ('k') | content/shell/renderer/webkit_test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 01a135fa52c4d24c4fa63b39998520fa876a483f..1569e57744601a9b6b3730cfcf645e5dd0125176 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -290,9 +290,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
void SetMockPushClientSuccess(const std::string& endpoint,
const std::string& registration_id);
void SetMockPushClientError(const std::string& message);
- void RequestEcho(int id, int size);
- int GetLastEchoId() const;
- int GetLastEchoSize() const;
bool GlobalFlag();
void SetGlobalFlag(bool value);
@@ -547,13 +544,6 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
&TestRunnerBindings::SetMockPushClientSuccess)
.SetMethod("setMockPushClientError",
&TestRunnerBindings::SetMockPushClientError)
- // IPCEcho API
- .SetMethod("requestEcho",
- &TestRunnerBindings::RequestEcho)
- .SetProperty("lastEchoId",
- &TestRunnerBindings::GetLastEchoId)
- .SetProperty("lastEchoSize",
- &TestRunnerBindings::GetLastEchoSize)
// Properties.
.SetProperty("globalFlag",
@@ -1408,24 +1398,6 @@ void TestRunnerBindings::SetMockPushClientError(const std::string& message) {
runner_->SetMockPushClientError(message);
}
-void TestRunnerBindings::RequestEcho(int id, int size) {
- if (!runner_)
- return;
- runner_->RequestEcho(id, size);
-}
-
-int TestRunnerBindings::GetLastEchoId() const {
- if (!runner_)
- return 0;
- return runner_->GetLastEchoId();
-}
-
-int TestRunnerBindings::GetLastEchoSize() const {
- if (!runner_)
- return 0;
- return runner_->GetLastEchoSize();
-}
-
bool TestRunnerBindings::GlobalFlag() {
if (runner_)
return runner_->global_flag_;
@@ -2904,18 +2876,6 @@ void TestRunner::SetMockPushClientError(const std::string& message) {
proxy_->GetPushClientMock()->SetMockErrorValues(message);
}
-void TestRunner::RequestEcho(int id, int size) {
- delegate_->requestEcho(id, size);
-}
-
-int TestRunner::GetLastEchoId() const {
- return delegate_->lastEchoId();
-}
-
-int TestRunner::GetLastEchoSize() const {
- return delegate_->lastEchoSize();
-}
-
void TestRunner::LocationChangeDone() {
web_history_item_count_ = delegate_->navigationEntryCount();
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.h ('k') | content/shell/renderer/webkit_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698