Fix Robolectric tests

Test: atest RunSettingsRoboTests
Change-Id: I66a6d1c42d57685c4beb9daeb534685c5cdd9c50
This commit is contained in:
Maurice Lam
2018-06-07 13:12:50 -07:00
parent 90c770278e
commit 681ac5bcc3

View File

@@ -84,9 +84,9 @@ public class SettingsRobolectricTestRunner extends RobolectricTestRunner {
paths.add(new ResourcePath(null, paths.add(new ResourcePath(null,
Fs.fromURL(new URL("file:frameworks/opt/setupwizard/library/recyclerview/res")), null)); Fs.fromURL(new URL("file:frameworks/opt/setupwizard/library/recyclerview/res")), null));
paths.add(new ResourcePath(null, paths.add(new ResourcePath(null,
Fs.fromURL(new URL("file:frameworks/support/v7/appcompat/res")), null)); Fs.fromURL(new URL("file:frameworks/support/appcompat/res")), null));
paths.add(new ResourcePath(null, paths.add(new ResourcePath(null,
Fs.fromURL(new URL("file:frameworks/support/v7/cardview/res")), null)); Fs.fromURL(new URL("file:frameworks/support/cardview/res")), null));
} catch (MalformedURLException e) { } catch (MalformedURLException e) {
throw new RuntimeException("SettingsRobolectricTestRunner failure", e); throw new RuntimeException("SettingsRobolectricTestRunner failure", e);
} }