diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-12 11:50:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-12 22:47:47 +0200 |
commit | e07ac6765dbaec78e77c694148f5531072036dc8 (patch) | |
tree | 423f0597b0137e07a48d52ac872ba6a54bbb8c4d /qadevOOo/tests | |
parent | 60ad74a87cb150feed06e6c48cf7461667a9cae9 (diff) |
sb140: #i117381# gvfs ucp handling all schemes spoils deregisterContentProvider test
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r-- | qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java index 075e157e57ad..de2ea0034d35 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java +++ b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java @@ -32,6 +32,7 @@ import lib.Status; import lib.StatusException; import com.sun.star.lang.XMultiServiceFactory; +import com.sun.star.lang.XServiceInfo; import com.sun.star.ucb.ContentProviderInfo; import com.sun.star.ucb.DuplicateProviderException; import com.sun.star.ucb.XContentProvider; @@ -272,7 +273,19 @@ public class _XContentProviderManager extends MultiMethodTest { res = oObj.queryContentProvider(myScheme); - // verifying that no provider is returned + // verifying that no provider is returned (if the + // GnomeVFSContentProvider is installed, it will handle all otherwise + // unhandled schemes, so we have to ignore it here): + if (res != null) { + XServiceInfo info = UnoRuntime.queryInterface( + XServiceInfo.class, res); + if (info != null + && info.supportsService( + "com.sun.star.ucb.GnomeVFSContentProvider")) + { + res = null; + } + } tRes.tested("deregisterContentProvider()", res == null); } } |