| Index: chrome/renderer/extensions/extension_api_client_unittest.cc
|
| diff --git a/chrome/renderer/extensions/extension_api_client_unittest.cc b/chrome/renderer/extensions/extension_api_client_unittest.cc
|
| index 49136c5131ae6757dfea84a5cdab17f6ff972d54..d5f73bb5796bea3c2a0893a038bca6f3750eab9d 100644
|
| --- a/chrome/renderer/extensions/extension_api_client_unittest.cc
|
| +++ b/chrome/renderer/extensions/extension_api_client_unittest.cc
|
| @@ -71,7 +71,9 @@ TEST_F(ExtensionAPIClientTest, CallbackDispatching) {
|
| "}"
|
| "function callback(result) {"
|
| " assert(typeof result == 'object', 'result not object');"
|
| - " assert(JSON.stringify(result) == '{\"foo\":\"bar\"}', "
|
| + " assert(JSON.stringify(result) == '{\"id\":1,\"index\":1,\"windowId\":1,"
|
| + "\"selected\":true,"
|
| + "\"url\":\"http://www.google.com/\"}',"
|
| " 'incorrect result');"
|
| " console.log('pass')"
|
| "}"
|
| @@ -92,7 +94,8 @@ TEST_F(ExtensionAPIClientTest, CallbackDispatching) {
|
|
|
| // Now send the callback a response
|
| ExtensionProcessBindings::HandleResponse(
|
| - callback_id, true, "{\"foo\":\"bar\"}", "");
|
| + callback_id, true, "{\"id\":1,\"index\":1,\"windowId\":1,\"selected\":true,"
|
| + "\"url\":\"http://www.google.com/\"}", "");
|
|
|
| // And verify that it worked
|
| ASSERT_EQ("pass", GetConsoleMessage());
|
|
|