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/automation/automation_json_requests.h" | 5 #include "chrome/test/automation/automation_json_requests.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/json/json_string_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/test/test_timeouts.h" | 15 #include "base/test/test_timeouts.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/common/automation_messages.h" | 18 #include "chrome/common/automation_messages.h" |
19 #include "chrome/test/automation/automation_proxy.h" | 19 #include "chrome/test/automation/automation_proxy.h" |
20 | 20 |
21 using automation::Error; | 21 using automation::Error; |
22 using automation::ErrorCode; | 22 using automation::ErrorCode; |
23 using base::DictionaryValue; | 23 using base::DictionaryValue; |
24 using base::ListValue; | 24 using base::ListValue; |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 | 937 |
938 bool SendOverrideGeolocationJSONRequest( | 938 bool SendOverrideGeolocationJSONRequest( |
939 AutomationMessageSender* sender, | 939 AutomationMessageSender* sender, |
940 const base::DictionaryValue* geolocation, | 940 const base::DictionaryValue* geolocation, |
941 Error* error) { | 941 Error* error) { |
942 scoped_ptr<DictionaryValue> dict(geolocation->DeepCopy()); | 942 scoped_ptr<DictionaryValue> dict(geolocation->DeepCopy()); |
943 dict->SetString("command", "OverrideGeoposition"); | 943 dict->SetString("command", "OverrideGeoposition"); |
944 DictionaryValue reply_dict; | 944 DictionaryValue reply_dict; |
945 return SendAutomationJSONRequest(sender, *dict.get(), &reply_dict, error); | 945 return SendAutomationJSONRequest(sender, *dict.get(), &reply_dict, error); |
946 } | 946 } |
OLD | NEW |