OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/webdriver/webdriver_capabilities_parser.h" | 5 #include "chrome/test/webdriver/webdriver_capabilities_parser.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/string_util.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/test/webdriver/webdriver_error.h" | 13 #include "chrome/test/webdriver/webdriver_error.h" |
14 #include "chrome/test/webdriver/webdriver_logging.h" | 14 #include "chrome/test/webdriver/webdriver_logging.h" |
15 #include "chrome/test/webdriver/webdriver_util.h" | 15 #include "chrome/test/webdriver/webdriver_util.h" |
16 | 16 |
17 using base::DictionaryValue; | 17 using base::DictionaryValue; |
18 using base::Value; | 18 using base::Value; |
19 | 19 |
20 namespace webdriver { | 20 namespace webdriver { |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 if (!switches->GetString(i, &switch_name)) { | 444 if (!switches->GetString(i, &switch_name)) { |
445 return new Error(kBadRequest, | 445 return new Error(kBadRequest, |
446 "Each switch to be removed must be a string"); | 446 "Each switch to be removed must be a string"); |
447 } | 447 } |
448 caps_->exclude_switches.insert(switch_name); | 448 caps_->exclude_switches.insert(switch_name); |
449 } | 449 } |
450 return NULL; | 450 return NULL; |
451 } | 451 } |
452 | 452 |
453 } // namespace webdriver | 453 } // namespace webdriver |
OLD | NEW |