Chromium Code Reviews| Index: chrome/test/pyautolib/pyautolib.i |
| diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i |
| index 958aa1a81f8249ba9f9d0b9b2770a6b21860f9e2..2ea624b82467de8fbf15a8c0c1666a73c831f55f 100644 |
| --- a/chrome/test/pyautolib/pyautolib.i |
| +++ b/chrome/test/pyautolib/pyautolib.i |
| @@ -432,5 +432,23 @@ class TestServer { |
| %feature("docstring", "Get URL for a file path") GetURL; |
| GURL GetURL(const std::string& path) const; |
| }; |
| + |
| +%extend TestServer { |
| + %feature("docstring", "Get port number.") GetPort; |
| + int GetPort() const { |
| + int val = 0; |
| + $self->server_data().GetInteger("port", &val); |
| + return val; |
| + } |
| + |
| + %feature("docstring", "Get xmpp port number in case of sync server.") |
| + GetSyncXmppPort; |
| + int GetSyncXmppPort() const { |
| + int val = 0; |
| + $self->server_data().GetInteger("xmpp_port", &val); |
| + return val; |
| + } |
| +} |
|
dennis_jeffrey
2011/10/28 00:33:51
nit: is it customary to have a ';' at the end of t
Nirnimesh
2011/10/28 00:40:25
you're right. added.
|
| + |
| } |