OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/test/chromedriver/chrome/recorder_devtools_client.h" |
| 6 #include "chrome/test/chromedriver/chrome/status.h" |
| 7 |
| 8 RecorderDevToolsClient::RecorderDevToolsClient() {} |
| 9 |
| 10 RecorderDevToolsClient::~RecorderDevToolsClient() {} |
| 11 |
| 12 Status RecorderDevToolsClient::SendCommandAndGetResult( |
| 13 const std::string& method, |
| 14 const base::DictionaryValue& params, |
| 15 scoped_ptr<base::DictionaryValue>* result) { |
| 16 commands_.push_back(Command(method, params)); |
| 17 |
| 18 // For any tests that directly call SendCommandAndGetResults, we'll just |
| 19 // always return { "result": true }. Currently only used when testing |
| 20 // "canEmulateNetworkConditions". |
| 21 (*result).reset(new base::DictionaryValue); |
| 22 (*result)->SetBoolean("result", true); |
| 23 return Status(kOk); |
| 24 } |
OLD | NEW |