Home | History | Annotate | Download | only in os
      1 /*
      2  * Copyright (C) 2016 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.internal.os;
     18 
     19 import java.io.PrintWriter;
     20 import java.io.StringWriter;
     21 import java.util.ArrayList;
     22 
     23 import android.os.BatteryStats;
     24 import android.os.Parcel;
     25 import android.test.suitebuilder.annotation.SmallTest;
     26 import android.util.Log;
     27 
     28 import junit.framework.Assert;
     29 import junit.framework.TestCase;
     30 
     31 import com.android.internal.os.BatteryStatsImpl;
     32 
     33 import org.mockito.Mockito;
     34 
     35 /**
     36  * Provides test cases for android.os.BatteryStats.
     37  */
     38 public class BatteryStatsUidTest extends TestCase {
     39     private static final String TAG = "BatteryStatsTimeBaseTest";
     40 
     41     static class TestBsi extends BatteryStatsImpl {
     42         TestBsi(MockClocks clocks) {
     43             super(clocks);
     44         }
     45     }
     46 
     47     /**
     48      * Test the observers and the setRunning call.
     49      */
     50     @SmallTest
     51     public void testParceling() throws Exception  {
     52     }
     53 }
     54 
     55