Home
last modified time | relevance | path

Searched refs:var_data (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/
Dfake_var_manager.cc15 const FakeVarData& var_data = iter->second; in ~FakeVarManager() local
16 EXPECT_EQ(0, var_data.ref_count) << "Non-zero refcount on " in ~FakeVarManager()
17 << Describe(var_data); in ~FakeVarManager()
36 FakeVarData* var_data = GetVarData(var); in AddRef() local
37 if (!var_data) in AddRef()
40 EXPECT_GT(var_data->ref_count, 0) in AddRef()
41 << "AddRefing freed " << Describe(*var_data); in AddRef()
42 var_data->ref_count++; in AddRef()
45 Describe(*var_data).c_str(), in AddRef()
46 var_data->ref_count); in AddRef()
[all …]
Dfake_var_interface.cc13 FakeVarData* var_data = manager_->CreateVarData(); in VarFromUtf8() local
14 var_data->type = PP_VARTYPE_STRING; in VarFromUtf8()
15 var_data->string_value.assign(data, len); in VarFromUtf8()
18 result.value.as_id = var_data->id; in VarFromUtf8()
36 FakeVarData* var_data = manager_->GetVarData(var); in VarToUtf8() local
37 if (!var_data) { in VarToUtf8()
42 EXPECT_LT(0, var_data->ref_count) << "VarToUtf8 on freed " in VarToUtf8()
43 << manager_->Describe(*var_data); in VarToUtf8()
45 *out_len = var_data->string_value.length(); in VarToUtf8()
46 return var_data->string_value.c_str(); in VarToUtf8()
Dfake_var_array_buffer_interface.cc14 FakeVarData* var_data = manager_->CreateVarData(); in Create() local
15 var_data->type = PP_VARTYPE_ARRAY_BUFFER; in Create()
16 var_data->buffer_value.length = size_in_bytes; in Create()
17 var_data->buffer_value.ptr = malloc(size_in_bytes); in Create()
20 result.value.as_id = var_data->id; in Create()
Dfake_var_array_interface.cc15 FakeVarData* var_data = manager_->CreateVarData(); in Create() local
16 var_data->type = PP_VARTYPE_ARRAY; in Create()
19 result.value.as_id = var_data->id; in Create()
Dfake_var_dictionary_interface.cc19 FakeVarData* var_data = manager_->CreateVarData(); in Create() local
20 var_data->type = PP_VARTYPE_DICTIONARY; in Create()
23 result.value.as_id = var_data->id; in Create()
/external/chromium_org/ppapi/tests/
Dtest_platform_verification_private.cc29 uint8_t* var_data = static_cast<uint8_t*>(challenge_array.Map()); in TestChallengePlatform() local
31 var_data[i] = i; in TestChallengePlatform()
Dtest_websocket.cc267 uint8_t* var_data = static_cast<uint8_t*>(arraybuffer_interface_->Map(var)); in CreateVarBinary() local
268 std::copy(binary.begin(), binary.end(), var_data); in CreateVarBinary()
1539 uint8_t* var_data = static_cast<uint8_t*>(message.Map()); in TestUtilityBinarySendReceive() local
1540 std::copy(binary.begin(), binary.end(), var_data); in TestUtilityBinarySendReceive()
/external/chromium_org/chrome/installer/util/
Dapp_command.cc88 bool var_data = this->*(kNameBoolVars[i].data); in AddWorkItems() local
92 if (var_data) { in AddWorkItems()
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/devfs/
Ddev_fs.cc147 const char* var_data = static_cast<const char*>(buf); in Write() local
149 struct PP_Var val = var_iface->VarFromUtf8(var_data, len); in Write()
/external/chromium_org/media/cdm/ppapi/
Dcdm_adapter.cc1137 uint8_t* var_data = static_cast<uint8_t*>(challenge_var.Map()); in SendPlatformChallenge() local
1138 memcpy(var_data, challenge, challenge_length); in SendPlatformChallenge()