Skip to content

Commit

Permalink
Update AndroidSdkRepositoryTest to account for changes to AndroidSdkR…
Browse files Browse the repository at this point in the history
…epository.

This fixes //src/test/java/com/google/devtools/build/lib:bazel-rules-tests.

--
PiperOrigin-RevId: 144328755
MOS_MIGRATED_REVID=144328755
  • Loading branch information
aj-michael authored and hlopko committed Jan 12, 2017
1 parent 17abf0a commit b5ceca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void setupMockClient(MockToolsConfig config) throws IOException {
config.create(
"/bazel_tools_workspace/tools/android/android_sdk_repository_template.bzl",
"def create_android_sdk_rules("
+ "name, build_tools_version, build_tools_directory, api_level):",
+ "name, build_tools_version, build_tools_directory, api_levels, default_api_level):",
" pass");

config.create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/** Tests for {@link AndroidNdkRepositoryFunction}. */
/** Tests for {@link AndroidSdkRepositoryFunction}. */
@RunWith(JUnit4.class)
public class AndroidSdkRepositoryTest extends BuildViewTestCase {

@Before
public void setup() throws Exception {
scratch.setWorkingDir("/sdk");
scratch.dir("platforms/android-25");
scratch.file("extras/google/m2repository/com/google/android/foo/1.0.0/foo.pom",
"<project>",
" <groupId>com.google.android</groupId>",
Expand Down

0 comments on commit b5ceca9

Please sign in to comment.