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

Unified Diff: ppapi/cpp/private/net_address_private.cc

Issue 8527017: Pepper: Add tests for the PPB_NetAddress_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed review comments Created 9 years, 1 month 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
« no previous file with comments | « ppapi/cpp/private/net_address_private.h ('k') | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/net_address_private.cc
diff --git a/ppapi/cpp/private/net_address_private.cc b/ppapi/cpp/private/net_address_private.cc
index fbae2b8d4a4c1bc3d0d301fcaa2093c0372fa59c..3b917959266d56ce68871d2556602527505ad734 100644
--- a/ppapi/cpp/private/net_address_private.cc
+++ b/ppapi/cpp/private/net_address_private.cc
@@ -21,6 +21,11 @@ template <> const char* interface_name<PPB_NetAddress_Private>() {
} // namespace
// static
+bool NetAddressPrivate::IsAvailable() {
+ return has_interface<PPB_NetAddress_Private>();
+}
+
+// static
bool NetAddressPrivate::AreEqual(const PP_NetAddress_Private& addr1,
const PP_NetAddress_Private& addr2) {
if (!has_interface<PPB_NetAddress_Private>())
« no previous file with comments | « ppapi/cpp/private/net_address_private.h ('k') | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698