| 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/file_path.h" | 8 #include "base/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_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/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; |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 base::Value* value, | 881 base::Value* value, |
| 882 Error* error) { | 882 Error* error) { |
| 883 DictionaryValue dict; | 883 DictionaryValue dict; |
| 884 dict.SetString("command", "SetPrefs"); | 884 dict.SetString("command", "SetPrefs"); |
| 885 dict.SetInteger("windex", 0); | 885 dict.SetInteger("windex", 0); |
| 886 dict.SetString("path", pref); | 886 dict.SetString("path", pref); |
| 887 dict.Set("value", value); | 887 dict.Set("value", value); |
| 888 DictionaryValue reply_dict; | 888 DictionaryValue reply_dict; |
| 889 return SendAutomationJSONRequest(sender, dict, &reply_dict, error); | 889 return SendAutomationJSONRequest(sender, dict, &reply_dict, error); |
| 890 } | 890 } |
| OLD | NEW |