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

Side by Side 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« 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