Home
last modified time | relevance | path

Searched refs:OSP_CHECK (Results 1 – 25 of 42) sorted by relevance

12

/external/openscreen/util/
Dosp_logging.h76 #define OSP_CHECK(condition) \ macro
80 OSP_CHECK((a) == (b)) << (a) << " vs. " << (b) << ": "
82 OSP_CHECK((a) != (b)) << (a) << " vs. " << (b) << ": "
83 #define OSP_CHECK_LT(a, b) OSP_CHECK((a) < (b)) << (a) << " vs. " << (b) << ": "
85 OSP_CHECK((a) <= (b)) << (a) << " vs. " << (b) << ": "
86 #define OSP_CHECK_GT(a, b) OSP_CHECK((a) > (b)) << (a) << " vs. " << (b) << ": "
88 OSP_CHECK((a) >= (b)) << (a) << " vs. " << (b) << ": "
92 #define OSP_DCHECK(condition) OSP_CHECK(condition)
Dflat_map.h58 OSP_CHECK(it != this->end()) << "failed to erase: element not found"; in erase_key()
/external/openscreen/cast/receiver/channel/
Dstatic_credentials.cc35 OSP_CHECK(root_key); in GenerateCredentials()
36 OSP_CHECK(root_cert); in GenerateCredentials()
39 OSP_CHECK(intermediate_key); in GenerateCredentials()
40 OSP_CHECK(device_key); in GenerateCredentials()
46 OSP_CHECK(intermediate_cert_or_error); in GenerateCredentials()
55 OSP_CHECK(device_cert_or_error); in GenerateCredentials()
85 OSP_CHECK(tls_cert_or_error); in GenerateCredentials()
92 OSP_CHECK(RSA_private_key_to_bytes(&pkey_bytes, &pkey_len, rsa_key)); in GenerateCredentials()
100 OSP_CHECK(RSA_public_key_to_bytes(&pkey_bytes, &pkey_len, rsa_key)); in GenerateCredentials()
124 OSP_CHECK(root_key); in GeneratePrivateKey()
[all …]
/external/openscreen/platform/test/
Dfake_udp_socket.cc31 OSP_CHECK(bind_errors_.size()) << "No Bind responses queued."; in Bind()
37 OSP_CHECK(set_multicast_outbound_interface_errors_.size()) in SetMulticastOutboundInterface()
44 OSP_CHECK(join_multicast_group_errors_.size()) in JoinMulticastGroup()
50 OSP_CHECK(set_dscp_errors_.size()) << "No SetDscp responses queued."; in SetDscp()
72 OSP_CHECK(send_errors_.size()) << "No SendMessage responses queued."; in SendMessage()
Dfake_clock.cc27 OSP_CHECK(task_runners_.empty()); in ~FakeClock()
69 OSP_CHECK(std::find(task_runners_.begin(), task_runners_.end(), in SubscribeToTimeChanges()
77 OSP_CHECK(it != task_runners_.end()); in UnsubscribeFromTimeChanges()
Dfake_task_runner.cc14 OSP_CHECK(clock_); in FakeTaskRunner()
/external/openscreen/cast/standalone_receiver/
Dmain.cc76 OSP_CHECK(name != nullptr) << "Missing mandatory argument: interface."; in GetInterfaceInfoFromName()
94 OSP_CHECK(!interface_info.name.empty()) << "Invalid interface specified."; in GetInterfaceInfoFromName()
211 OSP_CHECK(interface_name && strlen(interface_name) > 0) in RunStandaloneReceiver()
218 OSP_CHECK(creds.is_value()) << creds.error(); in RunStandaloneReceiver()
221 OSP_CHECK(interface.GetIpAddressV4() || interface.GetIpAddressV6()); in RunStandaloneReceiver()
Dstreaming_playback_controller.cc42 OSP_CHECK(window_) << "Failed to create SDL window: " << SDL_GetError();
44 OSP_CHECK(renderer_) << "Failed to create SDL renderer: " << SDL_GetError();
/external/openscreen/cast/test/
Dcast_socket_e2e_test.cc59 OSP_CHECK(!socket_); in OnConnected()
105 OSP_CHECK(!socket_); in OnConnected()
191 OSP_CHECK(loopback); in GetLoopbackV4Address()
193 OSP_CHECK(address); in GetLoopbackV4Address()
199 OSP_CHECK(loopback); in GetLoopbackV6Address()
/external/openscreen/osp/impl/testing/
Dfake_mdns_platform_service.cc20 OSP_CHECK(registered_interfaces_.empty()); in RegisterInterfaces()
43 OSP_CHECK(it != registered_interfaces_.end()) in DeregisterInterfaces()
Dfake_mdns_responder_adapter.cc28 OSP_CHECK(full_instance_name); in MakePtrEvent()
44 OSP_CHECK(full_instance_name); in MakeSrvEvent()
49 OSP_CHECK(domain_name); in MakeSrvEvent()
65 OSP_CHECK(domain_name); in MakeTxtEvent()
77 OSP_CHECK(domain_name); in MakeAEvent()
89 OSP_CHECK(domain_name); in MakeAaaaEvent()
186 OSP_CHECK(!running_); in Init()
383 OSP_CHECK(canonical_service_type.Append(DomainName::GetLocalDomain()).ok()); in StartPtrQuery()
459 OSP_CHECK(canonical_service_type.Append(DomainName::GetLocalDomain()).ok()); in StopPtrQuery()
/external/openscreen/osp/impl/discovery/mdns/
Ddomain_name.cc23 OSP_CHECK(first.domain_name_.size()); in Append()
24 OSP_CHECK(second.domain_name_.size()); in Append()
83 OSP_CHECK(after.domain_name_.size()); in Append()
/external/openscreen/discovery/dnssd/impl/
Dservice_dispatcher.cc26 OSP_CHECK(querier); in ForAllQueriers()
39 OSP_CHECK(publisher); in ForAllPublishers()
134 OSP_CHECK(publisher); in DeregisterAll()
/external/openscreen/cast/common/discovery/e2e_test/
Dtests.cc178 OSP_CHECK(done); in SetUpService()
195 OSP_CHECK(error.ok()) << "\tFailed to update service instance '" in UpdateRecords()
210 OSP_CHECK(error.ok()) << "\tFailed to publish service instance '" in PublishRecords()
226 OSP_CHECK(should_be_seen) << "Found service instance!"; in WaitUntilSeen()
238 OSP_CHECK(!should_be_seen) in WaitUntilSeen()
303 OSP_CHECK(!expect_to_be_present) in CheckForPublishedService()
/external/openscreen/cast/sender/testing/
Dtest_helpers.cc73 OSP_CHECK(message); in CreateAppAvailableResponseChecked()
82 OSP_CHECK(message); in CreateAppUnavailableResponseChecked()
/external/openscreen/cast/sender/channel/
Dcast_auth_util.cc206 OSP_CHECK(DateTimeFromSeconds(verification_time.count(), in VerifyTLSCertificateValidity()
208 OSP_CHECK( in VerifyTLSCertificateValidity()
287 OSP_CHECK(DateTimeFromSeconds(GetWallTimeSinceUnixEpoch().count(), &now)); in AuthenticateChallengeReply()
393 OSP_CHECK(DateTimeFromSeconds(GetWallTimeSinceUnixEpoch().count(), &now)); in VerifyCredentials()
/external/openscreen/osp/public/presentation/
Dpresentation_connection.h133 OSP_CHECK(endpoint_id_); in endpoint_id()
137 OSP_CHECK(connection_id_); in connection_id()
/external/openscreen/util/crypto/
Drandom_bytes.cc20 OSP_CHECK(RAND_bytes(out, len) == 1); in GenerateRandomBytes()
Dopenssl_util.cc42 OSP_CHECK(OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, nullptr) == 1); in EnsureOpenSSLInit()
/external/openscreen/platform/impl/
Dnetwork_interface_mac.cc54 OSP_CHECK(last_byte == UINT8_C(0x00)); in ToPrefixLength()
60 OSP_CHECK(netmask[i] == UINT8_C(0x00)); in ToPrefixLength()
Dsocket_handle_waiter_posix.cc81 OSP_CHECK(!was_running); in RunUntilStopped()
/external/openscreen/cast/standalone_sender/
Dlooping_file_sender.cc32 OSP_CHECK(senders.audio_config.codec == AudioCodec::kOpus);
33 OSP_CHECK(senders.video_config.codec == VideoCodec::kVp8);
/external/openscreen/osp/impl/
Dinternal_services.cc96 OSP_CHECK(open_sockets_.empty()); in ~InternalPlatformLinkage()
182 OSP_CHECK(g_instance) << "No listener or publisher is alive."; in RegisterMdnsSocket()
Dmdns_responder_service.cc314 OSP_CHECK(service_type); in StartListening()
323 OSP_CHECK(service_type); in StopListening()
380 OSP_CHECK(domain_name) << "bad hostname configured: " << service_hostname_; in StartService()
384 OSP_CHECK(error.ok()); in StartService()
/external/openscreen/cast/streaming/
Dsession_messager.cc94 OSP_CHECK(jsonified.is_value()) << "Tried to send an invalid message"; in SendOutboundMessage()
213 OSP_CHECK(message_json.is_value()) << "Tried to send an invalid message"; in SendMessage()

12