Skip to content

Commit

Permalink
Batch mojo binding tests.
Browse files Browse the repository at this point in the history
Batch tests to speed up execution. See go/test-batching.

Bug: 1149694
Change-Id: I953d198712ad60ba338344d446a0e4e99a5d9a53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2542825
Commit-Queue: Ken Rockot <rockot@google.com>
Auto-Submit: benjamin joyce <bjoyce@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#828244}
  • Loading branch information
Ben Joyce authored and Commit Bot committed Nov 17, 2020
1 parent c31f36d commit 44ff5db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
import org.junit.runner.RunWith;

import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.chromium.base.test.util.Batch;

import java.nio.charset.Charset;

/**
* Testing {@link BindingsHelper}.
*/
@RunWith(BaseJUnit4ClassRunner.class)
@Batch(Batch.UNIT_TESTS)
public class BindingsHelperTest {
/**
* Testing {@link BindingsHelper#utf8StringSizeInBytes(String)}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
import org.junit.runner.RunWith;

import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.chromium.base.test.util.Batch;
import org.chromium.mojo.bindings.test.mojom.imported.Point;

/**
* Testing internal classes of interfaces.
*/
@RunWith(BaseJUnit4ClassRunner.class)
@Batch(Batch.UNIT_TESTS)
public class MessageHeaderTest {
/**
* Testing that headers are identical after being serialized/deserialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
import org.junit.runner.RunWith;

import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.chromium.base.test.util.Batch;
import org.chromium.mojo.bindings.test.mojom.sample.NameGeneratorConstants;
import org.chromium.mojo.bindings.test.mojom.sample.SupportedCases;

/**
* Test mojom constant names generated for java.
*/
@RunWith(BaseJUnit4ClassRunner.class)
@Batch(Batch.UNIT_TESTS)
public class NameGeneratorTest {
@Test
@SmallTest
Expand Down

0 comments on commit 44ff5db

Please sign in to comment.