Rename GearyApplication class and source to match code style

Rename `GearyApplication` => `Application.Client` and
`geary-application.vala to `application-client.vala`. Update call sites
and test cases.
This commit is contained in:
Michael Gratton 2019-11-13 10:54:11 +11:00 committed by Michael James Gratton
parent 419bc6d051
commit 56876365ba
31 changed files with 80 additions and 76 deletions

View file

@ -6,19 +6,19 @@
*/
class GearyApplicationTest : TestCase {
class Application.ClientTest : TestCase {
private GearyApplication? test_article = null;
private Client? test_article = null;
public GearyApplicationTest() {
base("GearyApplicationTest");
public ClientTest() {
base("Application.ClientTest");
add_test("paths_when_installed", paths_when_installed);
}
public override void set_up() {
this.test_article = new GearyApplication();
this.test_article = new Client();
}
public override void tear_down() {

View file

@ -16,7 +16,7 @@ public class Application.ConfigurationTest : TestCase {
public override void set_up() {
Environment.unset_variable("XDG_CURRENT_DESKTOP");
this.test_config = new Configuration(GearyApplication.SCHEMA_ID);
this.test_config = new Configuration(Client.SCHEMA_ID);
}
public void desktop_environment() throws Error {

View file

@ -13,7 +13,7 @@ public abstract class ClientWebViewTestCase<V> : TestCase {
protected ClientWebViewTestCase(string name) {
base(name);
this.config = new Application.Configuration(GearyApplication.SCHEMA_ID);
this.config = new Application.Configuration(Application.Client.SCHEMA_ID);
this.config.enable_debug = true;
ClientWebView.init_web_context(
this.config,

View file

@ -15,7 +15,7 @@ public class ClientWebViewTest : TestCase {
public void init_web_context() throws Error {
Application.Configuration config = new Application.Configuration(
GearyApplication.SCHEMA_ID
Application.Client.SCHEMA_ID
);
config.enable_debug = true;
ClientWebView.init_web_context(

View file

@ -80,8 +80,8 @@ geary_test_client_sources = [
'engine/api/geary-credentials-mediator-mock.vala',
'client/accounts/accounts-manager-test.vala',
'client/application/application-client-test.vala',
'client/application/application-configuration-test.vala',
'client/application/geary-application-test.vala',
'client/components/client-web-view-test.vala',
'client/components/client-web-view-test-case.vala',
'client/composer/composer-web-view-test.vala',

View file

@ -49,10 +49,10 @@ int main(string[] args) {
// Keep this before other ClientWebView based tests since it tests
// WebContext init
client.add_suite(new Accounts.ManagerTest().get_suite());
client.add_suite(new Application.ClientTest().get_suite());
client.add_suite(new Application.ConfigurationTest().get_suite());
client.add_suite(new ClientWebViewTest().get_suite());
client.add_suite(new Composer.WebViewTest().get_suite());
client.add_suite(new GearyApplicationTest().get_suite());
client.add_suite(new Util.Avatar.Test().get_suite());
client.add_suite(new Util.Cache.Test().get_suite());
client.add_suite(new Util.Email.Test().get_suite());