| Index: chrome/test/webdriver/dispatch_unittest.cc
|
| diff --git a/chrome/test/webdriver/dispatch_unittest.cc b/chrome/test/webdriver/dispatch_unittest.cc
|
| index 167f68482cadc20a1d021a1e116baee94b680cc2..c75c12ce13dcbde0a9a9a3aaa93e2e98434e19d1 100644
|
| --- a/chrome/test/webdriver/dispatch_unittest.cc
|
| +++ b/chrome/test/webdriver/dispatch_unittest.cc
|
| @@ -47,7 +47,7 @@ TEST(DispatchTest, CorrectlyConvertsResponseCodesToHttpStatusCodes) {
|
| HttpResponse http_response;
|
|
|
| Response command_response;
|
| - command_response.SetValue(Value::CreateStringValue("foobar"));
|
| + command_response.SetValue(base::StringValue::New("foobar"));
|
|
|
| command_response.SetStatus(kSuccess);
|
| ExpectHttpStatus(HttpResponse::kOk, command_response, &http_response);
|
| @@ -66,8 +66,8 @@ TEST(DispatchTest, CorrectlyConvertsResponseCodesToHttpStatusCodes) {
|
| &http_response);
|
|
|
| ListValue* methods = new ListValue;
|
| - methods->Append(Value::CreateStringValue("POST"));
|
| - methods->Append(Value::CreateStringValue("GET"));
|
| + methods->Append(base::StringValue::New("POST"));
|
| + methods->Append(base::StringValue::New("GET"));
|
| command_response.SetValue(methods);
|
| command_response.SetStatus(kMethodNotAllowed);
|
| ExpectHttpStatus(HttpResponse::kMethodNotAllowed, command_response,
|
| @@ -94,11 +94,11 @@ TEST(DispatchTest, CorrectlyConvertsResponseCodesToHttpStatusCodes) {
|
| TEST(DispatchTest,
|
| ReturnsAnErrorOnNonStringMethodsListedOnAMethodNotAllowedResponse) {
|
| ListValue* methods = new ListValue;
|
| - methods->Append(Value::CreateStringValue("POST"));
|
| + methods->Append(base::StringValue::New("POST"));
|
| methods->Append(new DictionaryValue);
|
| - methods->Append(Value::CreateStringValue("GET"));
|
| + methods->Append(base::StringValue::New("GET"));
|
| methods->Append(new DictionaryValue);
|
| - methods->Append(Value::CreateStringValue("DELETE"));
|
| + methods->Append(base::StringValue::New("DELETE"));
|
|
|
| Response command_response;
|
| command_response.SetStatus(kMethodNotAllowed);
|
| @@ -114,7 +114,7 @@ TEST(DispatchTest, ReturnsCommandResponseAsJson) {
|
|
|
| Response command_response;
|
| command_response.SetStatus(kSuccess);
|
| - command_response.SetValue(Value::CreateStringValue("foobar"));
|
| + command_response.SetValue(base::StringValue::New("foobar"));
|
|
|
| HttpResponse http_response;
|
| internal::PrepareHttpResponse(command_response, &http_response);
|
|
|