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/chromedriver/chrome_impl.h" | 5 #include "chrome/test/chromedriver/chrome_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/string_split.h" | |
13 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/string_split.h" |
15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/test/chromedriver/devtools_client_impl.h" | 18 #include "chrome/test/chromedriver/devtools_client_impl.h" |
19 #include "chrome/test/chromedriver/javascript_dialog_manager.h" | 19 #include "chrome/test/chromedriver/javascript_dialog_manager.h" |
20 #include "chrome/test/chromedriver/net/net_util.h" | 20 #include "chrome/test/chromedriver/net/net_util.h" |
21 #include "chrome/test/chromedriver/net/sync_websocket_impl.h" | 21 #include "chrome/test/chromedriver/net/sync_websocket_impl.h" |
22 #include "chrome/test/chromedriver/net/url_request_context_getter.h" | 22 #include "chrome/test/chromedriver/net/url_request_context_getter.h" |
23 #include "chrome/test/chromedriver/status.h" | 23 #include "chrome/test/chromedriver/status.h" |
24 #include "chrome/test/chromedriver/version.h" | 24 #include "chrome/test/chromedriver/version.h" |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 return Status(kUnknownError, "version info not a dictionary"); | 290 return Status(kUnknownError, "version info not a dictionary"); |
291 if (!dict->GetString("Browser", version)) { | 291 if (!dict->GetString("Browser", version)) { |
292 return Status( | 292 return Status( |
293 kUnknownError, "Chrome version must be >= 26", | 293 kUnknownError, "Chrome version must be >= 26", |
294 Status(kUnknownError, "version info doesn't include string 'Browser'")); | 294 Status(kUnknownError, "version info doesn't include string 'Browser'")); |
295 } | 295 } |
296 return Status(kOk); | 296 return Status(kOk); |
297 } | 297 } |
298 | 298 |
299 } // namespace internal | 299 } // namespace internal |
OLD | NEW |