1package com.xtremelabs.robolectric.shadows;
2
3import java.lang.reflect.Field;
4
5import android.content.ContentProviderResult;
6import android.net.Uri;
7
8import com.xtremelabs.robolectric.internal.Implements;
9import com.xtremelabs.robolectric.internal.RealObject;
10
11@Implements(ContentProviderResult.class)
12public class ShadowContentProviderResult {
13    @RealObject ContentProviderResult realResult;
14
15    public void __constructor__(Uri uri) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {
16        Field field = realResult.getClass().getField("uri");
17        field.setAccessible(true);
18        field.set(realResult, uri);
19    }
20
21    public void __constructor__(int count) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {
22        Field field = realResult.getClass().getField("count");
23        field.setAccessible(true);
24        field.set(realResult, count);
25    }
26}