// Path: lib/src/main/java/com/google/capillary/Config.java
// public final class Config {
// 
//   /**
//    * Initializes the Capillary library.
//    *
//    * <p>This should be called before using any functionality provided by Capillary.
//    *
//    * @throws GeneralSecurityException if the initialization fails.
//    */
//   public static void initialize() throws GeneralSecurityException {
//     com.google.crypto.tink.Config.register(SignatureConfig.TINK_1_1_0);
//     com.google.crypto.tink.Config.register(AeadConfig.TINK_1_1_0);
//   }
// }
// 
// Path: lib/src/main/java/com/google/capillary/NoSuchKeyException.java
// public final class NoSuchKeyException extends CapillaryException {
// 
//   /**
//    * Creates a new {@link NoSuchKeyException} object.
//    *
//    * @param msg the exception message.
//    */
//   public NoSuchKeyException(String msg) {
//     super(msg);
//   }
// }


import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.google.capillary.Config;
import com.google.capillary.NoSuchKeyException;
import java.io.IOException;
import java.io.InputStream;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
/*
 * Copyright 2018 Google LLC
 *
 * 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
 *
 *     https://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.
 */

package com.google.capillary.android;



@RunWith(AndroidJUnit4.class)
public final class KeyManagerImplAndroidTest {

  private static final String KEYCHAIN_ID = "keychain 1";

  private Context context;
  private KeyManager rsaEcdsaKeyManager;
  private KeyManager webPushKeyManager;

  /**
   * Creates a new {@link KeyManagerImplAndroidTest} instance.
   */
  public KeyManagerImplAndroidTest() throws GeneralSecurityException {
// Path: lib/src/main/java/com/google/capillary/Config.java
// public final class Config {
// 
//   /**
//    * Initializes the Capillary library.
//    *
//    * <p>This should be called before using any functionality provided by Capillary.
//    *
//    * @throws GeneralSecurityException if the initialization fails.
//    */
//   public static void initialize() throws GeneralSecurityException {
//     com.google.crypto.tink.Config.register(SignatureConfig.TINK_1_1_0);
//     com.google.crypto.tink.Config.register(AeadConfig.TINK_1_1_0);
//   }
// }
// 
// Path: lib/src/main/java/com/google/capillary/NoSuchKeyException.java
// public final class NoSuchKeyException extends CapillaryException {
// 
//   /**
//    * Creates a new {@link NoSuchKeyException} object.
//    *
//    * @param msg the exception message.
//    */
//   public NoSuchKeyException(String msg) {
//     super(msg);
//   }
// }


// Path: lib-android/src/androidTest/java/com/google/capillary/android/KeyManagerImplAndroidTest.java
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.google.capillary.Config;
import com.google.capillary.NoSuchKeyException;
import java.io.IOException;
import java.io.InputStream;
import java.security.GeneralSecurityException;
import java.security.KeyStore;

/*
 * Copyright 2018 Google LLC
 *
 * 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
 *
 *     https://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.
 */

package com.google.capillary.android;



@RunWith(AndroidJUnit4.class)
public final class KeyManagerImplAndroidTest {

  private static final String KEYCHAIN_ID = "keychain 1";

  private Context context;
  private KeyManager rsaEcdsaKeyManager;
  private KeyManager webPushKeyManager;

  /**
   * Creates a new {@link KeyManagerImplAndroidTest} instance.
   */
  public KeyManagerImplAndroidTest() throws GeneralSecurityException {
    Config.initialize();