1 package android.util;
2 
3 /**
4  * Mock version of android.util.Base64 for local unit tests
5  */
6 public class Base64 {
7 
encodeToString(byte[] input, int flags)8     public static String encodeToString(byte[] input, int flags) {
9         return java.util.Base64.getEncoder().encodeToString(input);
10     }
11 
decode(String str, int flags)12     public static byte[] decode(String str, int flags) {
13         return java.util.Base64.getDecoder().decode(str);
14     }
15 }
16 
17