Searched refs:json_resp (Results 1 – 2 of 2) sorted by relevance
/external/libweave/src/ |
D | device_registration_info.cc | 551 auto json_resp = ParseJsonResponse(*response, &error); in RegisterDeviceOnTicketSent() local 552 if (!json_resp) in RegisterDeviceOnTicketSent() 556 ParseGCDError(json_resp.get(), &error); in RegisterDeviceOnTicketSent() 574 auto json_resp = ParseJsonResponse(*response, &error); in RegisterDeviceOnTicketFinalized() local 575 if (!json_resp) in RegisterDeviceOnTicketFinalized() 578 ParseGCDError(json_resp.get(), &error); in RegisterDeviceOnTicketFinalized() 586 if (!json_resp->GetString("robotAccountEmail", &robot_account) || in RegisterDeviceOnTicketFinalized() 587 !json_resp->GetString("robotAccountAuthorizationCode", &auth_code) || in RegisterDeviceOnTicketFinalized() 588 !json_resp->GetDictionary("deviceDraft", &device_draft_response) || in RegisterDeviceOnTicketFinalized() 618 auto json_resp = ParseOAuthResponse(*response, &error); in RegisterDeviceOnAuthCodeSent() local [all …]
|
D | device_registration_info_unittest.cc | 476 base::DictionaryValue json_resp; in TEST_F() local 477 json_resp.SetString("id", test_data::kClaimTicketId); in TEST_F() 478 json_resp.SetString("kind", "weave#registrationTicket"); in TEST_F() 479 json_resp.SetString("oauthClientId", test_data::kClientId); in TEST_F() 485 json_resp.Set("deviceDraft", device_draft); in TEST_F() 487 callback.Run(ReplyWithJson(200, json_resp), nullptr); in TEST_F()
|