Skip to content

Commit d00d2ff

Browse files
deepanshu-Android Git Automerger
authored andcommitted
am 5793383: Merge "Fix Tests after cherry picks. [DO NOT MERGE]" into klp-modular-dev
* commit '579338345721351313d4c3cd2a5114a0d135028d': Fix Tests after cherry picks. [DO NOT MERGE]
2 parents 735229c + 5793383 commit d00d2ff

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

  • tools/layoutlib
    • .idea/runConfigurations
    • bridge/tests/src/com/android/layoutlib/bridge/intensive

tools/layoutlib/.idea/runConfigurations/Create.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static String getPlatformDirFromHostOut(File out) {
161161
if (!out.isDirectory()) {
162162
return null;
163163
}
164-
File sdkDir = new File(out, "sdk" + File.separator + "sdk");
164+
File sdkDir = new File(out, "sdk");
165165
if (!sdkDir.isDirectory()) {
166166
// The directory we thought that should contain the sdk is not a directory.
167167
return null;
@@ -283,14 +283,14 @@ public void testRendering() throws ClassNotFoundException {
283283
}
284284

285285
/**
286-
* Uses Theme.Material and Target sdk version as 21.
286+
* Uses AppTheme and Target sdk version as 19.
287287
*/
288288
private SessionParams getSessionParams(LayoutPullParser layoutParser,
289289
ConfigGenerator configGenerator, LayoutLibTestCallback layoutLibCallback) {
290290
FolderConfiguration config = configGenerator.getFolderConfig();
291291
ResourceResolver resourceResolver =
292292
ResourceResolver.create(mProjectResources.getConfiguredResources(config),
293-
mFrameworkRepo.getConfiguredResources(config), "Theme.Material", false);
293+
mFrameworkRepo.getConfiguredResources(config), "AppTheme", true);
294294

295295
return new SessionParams(
296296
layoutParser,
@@ -300,7 +300,7 @@ private SessionParams getSessionParams(LayoutPullParser layoutParser,
300300
resourceResolver,
301301
layoutLibCallback,
302302
0,
303-
21, // TODO: Make it more configurable to run tests for various versions.
303+
19, // TODO: Make it more configurable to run tests for various versions.
304304
getLayoutLog());
305305
}
306306

0 commit comments

Comments
 (0)