Rename Config class and source file to match code style

Rename `Configuration` => `Application.Configuration` and
`geary-config.vala to `application-config.vala`. Update call sites and
test cases.
This commit is contained in:
Michael Gratton 2019-11-07 13:26:47 +11:00 committed by Michael James Gratton
parent 8f2563bc09
commit e426517b30
30 changed files with 96 additions and 82 deletions

View file

@ -5,7 +5,7 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
class ConfigurationTest : TestCase {
public class Application.ConfigurationTest : TestCase {
private Configuration test_config = null;

View file

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

View file

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

View file

@ -10,7 +10,7 @@ class ClientPageStateTest : ClientWebViewTestCase<ClientWebView> {
private class TestClientWebView : ClientWebView {
public TestClientWebView(Configuration config) {
public TestClientWebView(Application.Configuration config) {
base(config);
}

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-configuration-test.vala',
'client/application/geary-application-test.vala',
'client/application/geary-configuration-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,9 +49,9 @@ 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.ConfigurationTest().get_suite());
client.add_suite(new ClientWebViewTest().get_suite());
client.add_suite(new ComposerWebViewTest().get_suite());
client.add_suite(new ConfigurationTest().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());