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

Unified Diff: chrome/test/chromedriver/chrome/recorder_devtools_client.cc

Issue 883083002: [chromedriver] Add Network Conditions Override Manager and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix warning Created 5 years, 9 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
Index: chrome/test/chromedriver/chrome/recorder_devtools_client.cc
diff --git a/chrome/test/chromedriver/chrome/recorder_devtools_client.cc b/chrome/test/chromedriver/chrome/recorder_devtools_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2a7b0bd22854ef58d8bd04e17e547e722e8ab907
--- /dev/null
+++ b/chrome/test/chromedriver/chrome/recorder_devtools_client.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/test/chromedriver/chrome/recorder_devtools_client.h"
+#include "chrome/test/chromedriver/chrome/status.h"
+
+RecorderDevToolsClient::RecorderDevToolsClient() {}
+
+RecorderDevToolsClient::~RecorderDevToolsClient() {}
+
+Status RecorderDevToolsClient::SendCommandAndGetResult(
+ const std::string& method,
+ const base::DictionaryValue& params,
+ scoped_ptr<base::DictionaryValue>* result) {
+ commands_.push_back(Command(method, params));
+
+ // For any tests that directly call SendCommandAndGetResults, we'll just
+ // always return { "result": true }. Currently only used when testing
+ // "canEmulateNetworkConditions".
+ (*result).reset(new base::DictionaryValue);
+ (*result)->SetBoolean("result", true);
+ return Status(kOk);
+}
« no previous file with comments | « chrome/test/chromedriver/chrome/recorder_devtools_client.h ('k') | chrome/test/chromedriver/chrome/stub_web_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698