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

Side by Side Diff: chrome/test/chromedriver/window_commands.cc

Issue 2065733002: Add a method to override the network conditions of the ChromeDriver session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test XHR with setting network emulation and refactored netowrk setter method Created 4 years, 6 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/chromedriver/window_commands.h" 5 #include "chrome/test/chromedriver/window_commands.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/threading/platform_thread.h" 15 #include "base/threading/platform_thread.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "chrome/test/chromedriver/basic_types.h" 18 #include "chrome/test/chromedriver/basic_types.h"
19 #include "chrome/test/chromedriver/chrome/automation_extension.h" 19 #include "chrome/test/chromedriver/chrome/automation_extension.h"
20 #include "chrome/test/chromedriver/chrome/browser_info.h" 20 #include "chrome/test/chromedriver/chrome/browser_info.h"
21 #include "chrome/test/chromedriver/chrome/chrome.h" 21 #include "chrome/test/chromedriver/chrome/chrome.h"
22 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" 22 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h"
23 #include "chrome/test/chromedriver/chrome/devtools_client.h" 23 #include "chrome/test/chromedriver/chrome/devtools_client.h"
24 #include "chrome/test/chromedriver/chrome/geoposition.h" 24 #include "chrome/test/chromedriver/chrome/geoposition.h"
25 #include "chrome/test/chromedriver/chrome/javascript_dialog_manager.h" 25 #include "chrome/test/chromedriver/chrome/javascript_dialog_manager.h"
26 #include "chrome/test/chromedriver/chrome/js.h" 26 #include "chrome/test/chromedriver/chrome/js.h"
27 #include "chrome/test/chromedriver/chrome/network_conditions.h" 27 #include "chrome/test/chromedriver/chrome/network_conditions.h"
28 #include "chrome/test/chromedriver/chrome/network_list.h"
28 #include "chrome/test/chromedriver/chrome/status.h" 29 #include "chrome/test/chromedriver/chrome/status.h"
29 #include "chrome/test/chromedriver/chrome/ui_events.h" 30 #include "chrome/test/chromedriver/chrome/ui_events.h"
30 #include "chrome/test/chromedriver/chrome/web_view.h" 31 #include "chrome/test/chromedriver/chrome/web_view.h"
31 #include "chrome/test/chromedriver/element_util.h" 32 #include "chrome/test/chromedriver/element_util.h"
32 #include "chrome/test/chromedriver/net/timeout.h" 33 #include "chrome/test/chromedriver/net/timeout.h"
33 #include "chrome/test/chromedriver/session.h" 34 #include "chrome/test/chromedriver/session.h"
34 #include "chrome/test/chromedriver/util.h" 35 #include "chrome/test/chromedriver/util.h"
35 36
36 namespace { 37 namespace {
37 38
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 return status; 1061 return status;
1061 } 1062 }
1062 1063
1063 Status ExecuteTakeHeapSnapshot(Session* session, 1064 Status ExecuteTakeHeapSnapshot(Session* session,
1064 WebView* web_view, 1065 WebView* web_view,
1065 const base::DictionaryValue& params, 1066 const base::DictionaryValue& params,
1066 std::unique_ptr<base::Value>* value, 1067 std::unique_ptr<base::Value>* value,
1067 Timeout* timeout) { 1068 Timeout* timeout) {
1068 return web_view->TakeHeapSnapshot(value); 1069 return web_view->TakeHeapSnapshot(value);
1069 } 1070 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698