OLD | NEW |
---|---|
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 #ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "chrome/test/chromedriver/chrome/device_metrics.h" | |
17 #include "chrome/test/chromedriver/chrome/log.h" | 18 #include "chrome/test/chromedriver/chrome/log.h" |
19 #include "chrome/test/chromedriver/mobile_device.h" | |
samuong
2014/05/07 23:39:36
This #include is unnecessary here, but should be m
sam.rawlins
2014/05/09 05:35:17
Done.
| |
18 #include "chrome/test/chromedriver/net/net_util.h" | 20 #include "chrome/test/chromedriver/net/net_util.h" |
19 | 21 |
20 namespace base { | 22 namespace base { |
21 class CommandLine; | 23 class CommandLine; |
22 class DictionaryValue; | 24 class DictionaryValue; |
23 } | 25 } |
24 | 26 |
25 class Status; | 27 class Status; |
26 | 28 |
27 class Switches { | 29 class Switches { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 base::FilePath binary; | 86 base::FilePath binary; |
85 | 87 |
86 // If provided, the remote debugging address to connect to. | 88 // If provided, the remote debugging address to connect to. |
87 NetAddress debugger_address; | 89 NetAddress debugger_address; |
88 | 90 |
89 // Whether the lifetime of the started Chrome browser process should be | 91 // Whether the lifetime of the started Chrome browser process should be |
90 // bound to ChromeDriver's process. If true, Chrome will not quit if | 92 // bound to ChromeDriver's process. If true, Chrome will not quit if |
91 // ChromeDriver dies. | 93 // ChromeDriver dies. |
92 bool detach; | 94 bool detach; |
93 | 95 |
96 // Device metrics for use in Device Emulation. | |
97 DeviceMetrics device_metrics; | |
98 | |
94 // Set of switches which should be removed from default list when launching | 99 // Set of switches which should be removed from default list when launching |
95 // Chrome. | 100 // Chrome. |
96 std::set<std::string> exclude_switches; | 101 std::set<std::string> exclude_switches; |
97 | 102 |
98 std::vector<std::string> extensions; | 103 std::vector<std::string> extensions; |
99 | 104 |
100 // True if should always use DevTools for taking screenshots. | 105 // True if should always use DevTools for taking screenshots. |
101 // This is experimental and may be removed at a later point. | 106 // This is experimental and may be removed at a later point. |
102 bool force_devtools_screenshot; | 107 bool force_devtools_screenshot; |
103 | 108 |
104 scoped_ptr<base::DictionaryValue> local_state; | 109 scoped_ptr<base::DictionaryValue> local_state; |
105 | 110 |
106 std::string log_path; | 111 std::string log_path; |
107 | 112 |
108 LoggingPrefs logging_prefs; | 113 LoggingPrefs logging_prefs; |
109 | 114 |
110 // If set, enable minidump for chrome crashes and save to this directory. | 115 // If set, enable minidump for chrome crashes and save to this directory. |
111 std::string minidump_path; | 116 std::string minidump_path; |
112 | 117 |
113 scoped_ptr<base::DictionaryValue> prefs; | 118 scoped_ptr<base::DictionaryValue> prefs; |
114 | 119 |
115 Switches switches; | 120 Switches switches; |
116 }; | 121 }; |
117 | 122 |
118 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ | 123 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ |
OLD | NEW |