Update Geary.Endpoint API and source
Use a generic GSocketConnectable to specify the remote endpoint, simplify TLS cert management callbacks.
This commit is contained in:
parent
3c89a2fb23
commit
19d2fdfcbc
8 changed files with 160 additions and 137 deletions
|
|
@ -70,12 +70,22 @@ public class Geary.MockAccount : Account, MockObject {
|
|||
new MockClientService(
|
||||
config,
|
||||
config.incoming,
|
||||
new Endpoint(config.incoming.host, config.incoming.port, 0, 0)
|
||||
new Endpoint(
|
||||
new GLib.NetworkAddress(
|
||||
config.incoming.host, config.incoming.port
|
||||
),
|
||||
0, 0
|
||||
)
|
||||
),
|
||||
new MockClientService(
|
||||
config,
|
||||
config.outgoing,
|
||||
new Endpoint(config.outgoing.host, config.outgoing.port, 0, 0)
|
||||
new Endpoint(
|
||||
new GLib.NetworkAddress(
|
||||
config.outgoing.host, config.outgoing.port
|
||||
),
|
||||
0, 0
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue