1package com.xtremelabs.robolectric.shadows;
2
3import android.app.Service;
4import android.content.ComponentName;
5import android.content.Intent;
6import android.content.ServiceConnection;
7import android.os.IBinder;
8
9class TestService extends Service implements ServiceConnection {
10    ComponentName name;
11    IBinder service;
12    ComponentName nameUnbound;
13
14    @Override
15    public IBinder onBind(Intent intent) {
16        return null;
17    }
18
19    @Override
20    public void onServiceConnected(ComponentName name, IBinder service) {
21        this.name = name;
22        this.service = service;
23    }
24
25    @Override
26    public void onServiceDisconnected(ComponentName name) {
27        nameUnbound = name;
28    }
29}
30