| Index: chrome/test/pyautolib/pyautolib.i
|
| diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i
|
| index 958aa1a81f8249ba9f9d0b9b2770a6b21860f9e2..e135e9721035b47c88cc7d228e97267922336389 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;
|
| + }
|
| +};
|
| +
|
| }
|
|
|
|
|