blob: b154aa8c1f4597e6d437d53f86073b0f58ec2b84 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.media.router.caf;
import android.content.Context;
import com.google.android.gms.cast.framework.CastContext;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/** Shadow for {@link CastContext}. */
@Implements(CastContext.class)
public class ShadowCastContext {
private static CastContext sInstance;
@Implementation
public static CastContext getSharedInstance(Context context) {
return sInstance;
}
public static void setInstance(CastContext instance) {
sInstance = instance;
}
}