Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
BinaryCodecTest.java
Go to the documentation of this file.
1package io.flutter.plugin.common;
2
3import static org.junit.Assert.assertNull;
4
5import androidx.test.ext.junit.runners.AndroidJUnit4;
6import org.junit.Test;
7import org.junit.runner.RunWith;
8import org.robolectric.annotation.Config;
9
10@Config(manifest = Config.NONE)
11@RunWith(AndroidJUnit4.class)
12public class BinaryCodecTest {
13 @Test
14 public void decodeNull() {
15 assertNull(BinaryCodec.INSTANCE.decodeMessage(null));
16 }
17}
ByteBuffer decodeMessage(@Nullable ByteBuffer message)
static final BinaryCodec INSTANCE