Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: ppapi/tests/test_udp_socket_private.h

Issue 10735056: AllowBroadcast() is exposed to NaCl. (Closed) Base URL: http://git.chromium.org/chromium/src.git@udp_broadcast
Patch Set: Sync. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/tests/test_udp_socket_private.h
diff --git a/ppapi/tests/test_udp_socket_private.h b/ppapi/tests/test_udp_socket_private.h
index a16484241125660ac44028f593b2705565e34370..39d781a1fd17b7d6446d74a7c72eaef971b9dd0f 100644
--- a/ppapi/tests/test_udp_socket_private.h
+++ b/ppapi/tests/test_udp_socket_private.h
@@ -21,14 +21,28 @@ class TestUDPSocketPrivate : public TestCase {
private:
std::string GetLocalAddress(PP_NetAddress_Private* address);
+ std::string SetBroadcastOptions(pp::UDPSocketPrivate* socket);
std::string BindUDPSocket(pp::UDPSocketPrivate* socket,
PP_NetAddress_Private *address);
+ std::string LookupPortAndBindUDPSocket(pp::UDPSocketPrivate* socket,
+ PP_NetAddress_Private* address);
std::string BindUDPSocketFailure(pp::UDPSocketPrivate* socket,
PP_NetAddress_Private *address);
+ std::string ReadSocket(pp::UDPSocketPrivate* socket,
+ PP_NetAddress_Private* address,
+ size_t size,
+ std::string* message);
+ std::string PassMessage(pp::UDPSocketPrivate* target,
+ pp::UDPSocketPrivate* source,
+ PP_NetAddress_Private* address,
+ const std::string& message);
std::string TestConnect();
std::string TestConnectFailure();
+ std::string TestBroadcast();
+ std::string TestSetSocketFeatureErrors();
+ const PPB_UDPSocket_Private_0_4* interface_;
viettrungluu 2012/08/27 18:33:54 These tests use the C++ wrappers, so you should ju
ygorshenin1 2012/08/27 19:12:47 Please, take a look at TestSetSocketFeatureErrors.
viettrungluu 2012/08/29 17:52:47 My point is that it shouldn't.
ygorshenin1 2012/08/30 05:41:59 Done.
std::string host_;
uint16_t port_;
};

Powered by Google App Engine
This is Rietveld 408576698