/external/chromium_org/remoting/host/setup/ |
H A D | me2me_native_messaging_host_unittest.cc | 33 void VerifyHelloResponse(scoped_ptr<base::DictionaryValue> response) { argument 34 ASSERT_TRUE(response); 36 EXPECT_TRUE(response->GetString("type", &value)); 38 EXPECT_TRUE(response->GetString("version", &value)); 42 void VerifyGetHostNameResponse(scoped_ptr<base::DictionaryValue> response) { argument 43 ASSERT_TRUE(response); 45 EXPECT_TRUE(response->GetString("type", &value)); 47 EXPECT_TRUE(response->GetString("hostname", &value)); 51 void VerifyGetPinHashResponse(scoped_ptr<base::DictionaryValue> response) { argument 52 ASSERT_TRUE(response); 60 VerifyGenerateKeyPairResponse(scoped_ptr<base::DictionaryValue> response) argument 69 VerifyGetDaemonConfigResponse(scoped_ptr<base::DictionaryValue> response) argument 79 VerifyGetUsageStatsConsentResponse( scoped_ptr<base::DictionaryValue> response) argument 94 VerifyStopDaemonResponse(scoped_ptr<base::DictionaryValue> response) argument 103 VerifyGetDaemonStateResponse(scoped_ptr<base::DictionaryValue> response) argument 112 VerifyUpdateDaemonConfigResponse( scoped_ptr<base::DictionaryValue> response) argument 122 VerifyStartDaemonResponse(scoped_ptr<base::DictionaryValue> response) argument 378 scoped_ptr<base::DictionaryValue> response = ReadMessageFromOutputPipe(); local 433 scoped_ptr<base::DictionaryValue> response = local 513 scoped_ptr<base::DictionaryValue> response = ReadMessageFromOutputPipe(); local 537 scoped_ptr<base::DictionaryValue> response = local [all...] |
/external/chromium_org/remoting/host/ |
H A D | token_validator_base.cc | 163 // Verify that we got a successful response. 171 int response = request_->GetResponseCode(); local 172 if (response != 200) { 174 << "Error " << response << " validating token: '" << data_ << "'"; 178 // Decode the JSON data from the response. 183 LOG(ERROR) << "Invalid token validation response: '" << data_ << "'";
|
H A D | token_validator_factory_impl_unittest.cc | 39 FakeProtocolHandler(const std::string& headers, const std::string& response) argument 41 response_(response) { 57 void SetResponse(const std::string& headers, const std::string& response) { argument 61 "https", new FakeProtocolHandler(headers, response)); 110 std::string response; local 111 base::JSONWriter::Write(&response_dict, &response); 112 return response; 118 std::string response; local 119 base::JSONWriter::Write(&response_dict, &response); 120 return response; 124 SetResponse(const std::string& headers, const std::string& response) argument [all...] |
/external/chromium_org/remoting/host/win/ |
H A D | launch_process_with_token.cc | 253 // Receives the response to a remote process create request. 265 CreateProcessResponse response; local 266 if (!ReadFile(pipe, &response, sizeof(response), &bytes, NULL)) { 267 PLOG(ERROR) << "Failed to receive CreateProcessAsUser response"; 273 if (bytes != sizeof(response)) { 278 if (!response.success) { 279 SetLastError(response.last_error); 283 *process_information_out = response.process_information;
|
/external/chromium_org/remoting/protocol/ |
H A D | chromium_port_allocator.cc | 114 std::string response; local 115 source->GetResponseAsString(&response); 127 ReceiveSessionResponse(response);
|
H A D | connection_to_host.cc | 163 SessionManager::IncomingSessionResponse* response) { 166 *response = SessionManager::DECLINE; 161 OnIncomingSession( Session* session, SessionManager::IncomingSessionResponse* response) argument
|
H A D | jingle_session.cc | 42 // How long we should wait for a response from the other end. This value is used 334 const buzz::XmlElement* response) { 345 // |response| will be NULL if the request timed out. 346 if (!response) { 352 response->Attr(buzz::QName(std::string(), "type")); 354 LOG(ERROR) << "Received error in response to " << type_str 355 << " message: \"" << response->Str() 359 // here. Parse the response stanza to find failure reason. 382 const buzz::XmlElement* response) { 398 if (!response) { 331 OnMessageResponse( JingleMessage::ActionType request_type, IqRequest* request, const buzz::XmlElement* response) argument 381 OnTransportInfoResponse(IqRequest* request, const buzz::XmlElement* response) argument [all...] |
H A D | jingle_session_manager.cc | 118 IncomingSessionResponse response = SessionManager::DECLINE; local 119 listener_->OnIncomingSession(session, &response); 121 if (response == SessionManager::ACCEPT) { 125 switch (response) {
|
/external/chromium_org/rlz/lib/ |
H A D | financial_ping.cc | 236 bool FinancialPing::PingServer(const char* request, std::string* response) { argument 237 if (!response) 240 response->clear(); 271 // Check the response status. 279 // Get the response text. 287 response->append(buffer.get(), bytes_read); 348 return fetcher->GetResponseAsString(response);
|
H A D | rlz_lib.cc | 21 // Event information returned from ping response. 376 bool PingFinancialServer(Product product, const char* request, char* response, argument 378 if (!response || response_buffer_size == 0) 380 response[0] = 0; 394 strncpy(response, response_string.c_str(), response_buffer_size); 395 response[response_buffer_size - 1] = 0; 399 bool IsPingResponseValid(const char* response, int* checksum_idx) { argument 400 if (!response || !response[0]) 406 if (strlen(response) > kMaxPingResponseLengt 451 ParseFinancialPingResponse(Product product, const char* response) argument 488 std::string response; local 498 ParsePingResponse(Product product, const char* response) argument [all...] |
/external/chromium_org/rlz/win/dll/ |
H A D | exports.cc | 69 const char* response) { 70 return rlz_lib::ParsePingResponse(product, response); 73 RLZ_DLL_EXPORT bool IsPingResponseValid(const char* response, argument 75 return rlz_lib::IsPingResponseValid(response, checksum_idx); 78 RLZ_DLL_EXPORT bool SetMachineDealCodeFromPingResponse(const char* response) { argument 79 return rlz_lib::SetMachineDealCodeFromPingResponse(response); 68 ParsePingResponse(rlz_lib::Product product, const char* response) argument
|
/external/chromium_org/rlz/win/lib/ |
H A D | machine_deal.cc | 161 bool MachineDealCode::GetNewCodeFromPingResponse(const char* response, argument 170 if (!IsPingResponseValid(response, &response_length)) 184 while (GetResponseLine(response, response_length, &search_index, 192 return false; // Corrupted DCC - ignore this response. 213 bool MachineDealCode::SetFromPingResponse(const char* response) { argument 218 response, &has_new_dcc, new_dcc, arraysize(new_dcc));
|
H A D | rlz_lib_win.cc | 205 bool SetMachineDealCodeFromPingResponse(const char* response) { argument 206 return MachineDealCode::SetFromPingResponse(response);
|
/external/chromium_org/sync/engine/ |
H A D | apply_control_data_updates.cc | 214 UpdateAttemptResponse response = AttemptToUpdateEntry( local 216 DCHECK_EQ(SUCCESS, response);
|
H A D | commit_util.cc | 410 sync_pb::CommitResponse::ResponseType response = server_entry.response_type(); local 411 if (!sync_pb::CommitResponse::ResponseType_IsValid(response)) { 412 LOG(ERROR) << "Commit response has unknown response type! Possibly out " 416 if (sync_pb::CommitResponse::TRANSIENT_ERROR == response) { 421 if (sync_pb::CommitResponse::INVALID_MESSAGE == response) { 424 return response; 426 if (sync_pb::CommitResponse::CONFLICT == response) { 428 return response; 430 if (sync_pb::CommitResponse::RETRY == response) { [all...] |
H A D | directory_commit_contribution.cc | 76 const sync_pb::ClientToServerResponse& response, 79 const sync_pb::CommitResponse& commit_response = response.commit(); 152 LOG(FATAL) << "Inconsistent counts when processing commit response"; 75 ProcessCommitResponse( const sync_pb::ClientToServerResponse& response, sessions::StatusController* status) argument
|
H A D | directory_commit_contribution_unittest.cc | 89 sync_pb::CommitResponse::EntryResponse* response) { 90 response->set_response_type(sync_pb::CommitResponse::SUCCESS); 91 response->set_non_unique_name(entity.name()); 92 response->set_version(entity.version() + 1); 93 response->set_parent_id_string(entity.parent_id_string()); 96 response->set_id_string(id_factory_.NewServerId().GetServerId()); 98 response->set_id_string(entity.id_string()); 361 // specially crafted response to the syncer in order to test commit response 362 // processing. The response simulate 87 CreateSuccessfulCommitResponse( const sync_pb::SyncEntity& entity, sync_pb::CommitResponse::EntryResponse* response) argument 388 sync_pb::ClientToServerResponse response; local 472 sync_pb::ClientToServerResponse response; local [all...] |
H A D | get_updates_processor_unittest.cc | 60 void InitFakeUpdateResponse(sync_pb::GetUpdatesResponse* response) { argument 65 response->add_new_progress_marker(); 68 sync_pb::DataTypeContext* context = response->add_context_mutations(); 74 response->set_changes_remaining(0); 329 // Verify that a bogus response message is detected.
|
H A D | model_type_sync_worker_impl_unittest.cc | 66 // significant server action until we receive an update response that 138 // be updated until the response is actually processed by the model thread. 144 // Reads the latest update response datas on the model thread. 146 // be updated until the response is actually processed by the model thread. 153 // be updated until the response is actually processed by the model thread. 158 // Reads the latest commit response datas on the model thread. 160 // be updated until the response is actually processed by the model thread. 468 // issued and the time when the commit response is received. 477 sync_pb::ClientToServerResponse response = local 481 contribution->ProcessCommitResponse(response, [all...] |
H A D | non_blocking_type_commit_contribution.cc | 42 const sync_pb::ClientToServerResponse& response, 44 const sync_pb::CommitResponse& commit_response = response.commit(); 41 ProcessCommitResponse( const sync_pb::ClientToServerResponse& response, sessions::StatusController* status) argument
|
H A D | syncer_proto_util.cc | 43 // Time to backoff syncing after receiving a throttled response. 46 void LogResponseProfilingData(const ClientToServerResponse& response) { argument 47 if (response.has_profiling_data()) { 49 response_trace << "Server response trace:"; 51 if (response.profiling_data().has_user_lookup_time()) { 53 << response.profiling_data().user_lookup_time() << "ms"; 56 if (response.profiling_data().has_meta_data_write_time()) { 58 << response.profiling_data().meta_data_write_time() 62 if (response.profiling_data().has_meta_data_read_time()) { 64 << response 162 GetTypesToMigrate(const ClientToServerResponse& response) argument 205 VerifyResponseBirthday( const ClientToServerResponse& response, syncable::Directory* dir) argument 237 IsSyncDisabledByAdmin( const sync_pb::ClientToServerResponse& response) argument 264 PostAndProcessHeaders(ServerConnectionManager* scm, sessions::SyncSession* session, const ClientToServerMessage& msg, ClientToServerResponse* response) argument 298 GetThrottleDelay( const ClientToServerResponse& response) argument 345 PostClientToServerMessage( ClientToServerMessage* msg, ClientToServerResponse* response, SyncSession* session) argument 548 PersistBagOfChips(syncable::Directory* dir, const sync_pb::ClientToServerResponse& response) argument 580 GetUpdatesResponseString( const sync_pb::GetUpdatesResponse& response) argument 592 ClientToServerResponseDebugString( const ClientToServerResponse& response) argument [all...] |
H A D | syncer_proto_util_unittest.cc | 53 sync_pb::ClientToServerResponse response; local 54 response.add_migrated_data_type_id( 56 response.add_migrated_data_type_id( 58 response.add_migrated_data_type_id(-1); 60 GetTypesToMigrate(response).Equals( 207 sync_pb::ClientToServerResponse response; local 208 EXPECT_FALSE(SyncerProtoUtil::VerifyResponseBirthday(response, directory())); 211 response.set_store_birthday("flan"); 212 EXPECT_TRUE(SyncerProtoUtil::VerifyResponseBirthday(response, directory())); 216 response 230 sync_pb::ClientToServerResponse response; local 268 sync_pb::ClientToServerResponse response; variable 297 sync_pb::ClientToServerResponse response; local [all...] |
H A D | traffic_logger.cc | 41 const sync_pb::ClientToServerResponse& response) { 42 LogData(response, &ClientToServerResponseToValue, 40 LogClientToServerResponse( const sync_pb::ClientToServerResponse& response) argument
|
/external/chromium_org/sync/engine/net/ |
H A D | server_connection_manager.cc | 83 HttpResponse* response, 85 if (net::HTTP_OK != response->response_code) { 86 response->server_status = HttpResponse::SYNC_SERVER_ERROR; 90 if (require_response && (1 > response->content_length)) 94 static_cast<int>(response->content_length)); 95 if (bytes_read != response->content_length) { 96 response->server_status = HttpResponse::IO_ERROR; 103 HttpResponse* response, 106 static_cast<int>(response->content_length)); 108 if (bytes_read != response 81 ReadBufferResponse( string* buffer_out, HttpResponse* response, bool require_response) argument 102 ReadDownloadResponse( HttpResponse* response, string* buffer_out) argument 166 ScopedServerStatusWatcher( ServerConnectionManager* conn_mgr, HttpResponse* response) argument [all...] |
H A D | server_connection_manager.h | 58 // response) 67 // RETRY is returned when a Commit request fails with a RETRY response from 117 HttpResponse* response); 131 // buffer_out - string will be overwritten with response 135 HttpResponse response; member in struct:syncer::ServerConnectionManager::PostBufferParams 150 HttpResponse* response) = 0; 156 bool ReadBufferResponse(std::string* buffer_out, HttpResponse* response, 158 bool ReadDownloadResponse(HttpResponse* response, std::string* buffer_out); 188 // POSTS buffer_in and reads a response into buffer_out. Uses our currently
|