Moved testutils package to a seperate module so it can be accessed by the tests in other modules.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=123964784
This commit is contained in:
eguven 2016-06-03 06:52:55 -07:00 committed by Oliver Woodman
parent 105ef1da2d
commit ebd37cfb8e
10 changed files with 58 additions and 1 deletions

View File

@ -40,6 +40,12 @@ android {
lintOptions {
abortOnError false
}
sourceSets {
androidTest {
java.srcDirs += "../testutils/src/main/java/"
}
}
}
dependencies {

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
include ':library'
include ':testutils'
include ':demo'
include ':extension-opus'
include ':extension-vp9'

24
testutils/build.gradle Normal file
View File

@ -0,0 +1,24 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile project(':library')
compile 'org.mockito:mockito-core:1.9.5'
}

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.exoplayer.testutils">
<!--
Important: ExoPlayerLib specifies a minSdkVersion of 9 because various components provided by
the library may be of use on older devices. However, please note that the core video playback
functionality provided by the library requires API level 16 or greater.
-->
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23"/>
</manifest>

View File

@ -19,7 +19,6 @@ import com.google.android.exoplayer.C;
import com.google.android.exoplayer.extractor.ExtractorInput;
import android.util.SparseBooleanArray;
import junit.framework.Assert;
import java.io.EOFException;