OSDN Git Service

Add testing framework to LayoutLib. [DO NOT MERGE]
authorDeepanshu Gupta <deepanshu@google.com>
Thu, 31 Jul 2014 18:32:25 +0000 (11:32 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Wed, 1 Oct 2014 19:43:11 +0000 (12:43 -0700)
commitb6a37d897aca9d09a09d5c4fa9e60f6f43d6a166
tree6027e80c5f18c386cef5652b355c2012f98951a7
parent23f09423cb2cb59333d2f410e89534f0a08ac424
Add testing framework to LayoutLib. [DO NOT MERGE]

This change adds an end to end test which loads the framework resources
and a test app and ensures that no exceptions or warnings are thrown.

The change also adds project configuration for intelliJ.

Change-Id: I7b67c0f1a2af2dac95df7f3231cab537b9826d7d
(cherry picked from commit a8e9517470869fa29946ae1fa1ceeb24c7970391)
65 files changed:
tools/layoutlib/.gitignore
tools/layoutlib/.idea/.name [new file with mode: 0644]
tools/layoutlib/.idea/codeStyleSettings.xml [new file with mode: 0644]
tools/layoutlib/.idea/compiler.xml [new file with mode: 0644]
tools/layoutlib/.idea/copyright/Android.xml [new file with mode: 0644]
tools/layoutlib/.idea/copyright/profiles_settings.xml [new file with mode: 0644]
tools/layoutlib/.idea/encodings.xml [new file with mode: 0644]
tools/layoutlib/.idea/inspectionProfiles/Project_Default.xml [new file with mode: 0644]
tools/layoutlib/.idea/inspectionProfiles/profiles_settings.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/asm_4_0.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/framework_jar.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/guava.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/icu4j.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/kxml2_2_3_0.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/layoutlib_api_prebuilt.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/ninepatch_prebuilt.xml [new file with mode: 0644]
tools/layoutlib/.idea/libraries/tools_common_prebuilt.xml [new file with mode: 0644]
tools/layoutlib/.idea/misc.xml [new file with mode: 0644]
tools/layoutlib/.idea/modules.xml [new file with mode: 0644]
tools/layoutlib/.idea/runConfigurations/All_in_bridge.xml [new file with mode: 0644]
tools/layoutlib/.idea/runConfigurations/All_in_create.xml [new file with mode: 0644]
tools/layoutlib/.idea/runConfigurations/Create.xml [new file with mode: 0644]
tools/layoutlib/.idea/scopes/scope_settings.xml [new file with mode: 0644]
tools/layoutlib/.idea/uiDesigner.xml [new file with mode: 0644]
tools/layoutlib/.idea/vcs.xml [new file with mode: 0644]
tools/layoutlib/bridge/.classpath
tools/layoutlib/bridge/bridge.iml [new file with mode: 0644]
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java
tools/layoutlib/bridge/tests/Android.mk
tools/layoutlib/bridge/tests/res/testApp/MyApplication/.gitignore [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build.gradle [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/BuildConfig.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/MyActivity.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$attr.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$dimen.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$drawable.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$id.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$layout.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$menu.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$string.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R$style.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/R.class [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/gradle.properties [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/gradle/wrapper/gradle-wrapper.jar [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/gradle/wrapper/gradle-wrapper.properties [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/gradlew [new file with mode: 0755]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/gradlew.bat [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/proguard-rules.pro [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/androidTest/java/com/android/layoulib/test/myapplication/ApplicationTest.java [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/AndroidManifest.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/MyActivity.java [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/res/drawable/ic_launcher.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/res/layout/activity.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/res/layout/layout.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/res/menu/my.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/res/values/dimens.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/res/values/strings.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/res/values/styles.xml [new file with mode: 0644]
tools/layoutlib/bridge/tests/src/android/graphics/Matrix_DelegateTest.java
tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java [new file with mode: 0644]
tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ConfigGenerator.java [new file with mode: 0644]
tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java [new file with mode: 0644]
tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/LayoutPullParser.java [new file with mode: 0644]
tools/layoutlib/create/create.iml [new file with mode: 0644]