aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-05-08 02:27:33 +0800
committerXan Lopez <xan@igalia.com>2012-05-08 02:29:24 +0800
commit3847db0803addac9f0b90dc86767d8f65768d4ad (patch)
treebaa17c614dc6b90333eeca6ab47f2629c9303546 /tests
parent8c65eb746306499465f23057dbd4dea484c953aa (diff)
downloadgsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar
gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.gz
gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.bz2
gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.lz
gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.xz
gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.zst
gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.zip
Allow for more fine-grained file helpers init
Since we are about to migrate our profile dir, allow file helpers init to not ensure the profile dir exists (it was hardcoded until now). For this we get rid of the ugly boolean parameters and add a flags parameter, which preserves the old behaviors and allows for this new option. We update all the callers in the tree.
Diffstat (limited to 'tests')
-rw-r--r--tests/ephy-download-test.c2
-rw-r--r--tests/ephy-embed-single-test.c2
-rw-r--r--tests/ephy-web-view-test.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c
index b1c4171bf..3fd208af5 100644
--- a/tests/ephy-download-test.c
+++ b/tests/ephy-download-test.c
@@ -166,7 +166,7 @@ main (int argc, char *argv[])
ephy_embed_prefs_init ();
_ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE);
- if (!ephy_file_helpers_init (NULL, TRUE, FALSE, NULL)) {
+ if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) {
g_debug ("Something wrong happened with ephy_file_helpers_init()");
return -1;
}
diff --git a/tests/ephy-embed-single-test.c b/tests/ephy-embed-single-test.c
index d0891b0f9..f5e4b8e50 100644
--- a/tests/ephy-embed-single-test.c
+++ b/tests/ephy-embed-single-test.c
@@ -87,7 +87,7 @@ main (int argc, char *argv[])
ephy_embed_prefs_init ();
_ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE);
- if (!ephy_file_helpers_init (NULL, TRUE, FALSE, NULL)) {
+ if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) {
g_debug ("Something wrong happened with ephy_file_helpers_init()");
return -1;
}
diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c
index 760ffff57..ee2af1f97 100644
--- a/tests/ephy-web-view-test.c
+++ b/tests/ephy-web-view-test.c
@@ -246,7 +246,7 @@ main (int argc, char *argv[])
ephy_debug_init ();
ephy_embed_prefs_init ();
- if (!ephy_file_helpers_init (NULL, TRUE, FALSE, NULL)) {
+ if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) {
g_debug ("Something wrong happened with ephy_file_helpers_init()");
return -1;
}