Addressed comments.

Merge from head.
This commit is contained in:
Sandor Dornbush
2010-12-31 09:11:22 -08:00
parent 904c519091
commit b961356b7b
12 changed files with 65 additions and 105 deletions
@@ -28,23 +28,20 @@ public class SensorManagerFactoryTest extends AndroidTestCase {
@SmallTest
public void testCreateZephyr() throws Exception {
assertClassForName(
ZephyrSensorManager.class, R.string.zephyr_sensor_type);
assertClassForName(ZephyrSensorManager.class, R.string.zephyr_sensor_type);
}
@SmallTest
public void testCreateAnt() throws Exception {
assertClassForName(
AntDirectSensorManager.class, R.string.ant_sensor_type);
assertClassForName(AntDirectSensorManager.class, R.string.ant_sensor_type);
}
@SmallTest
public void testCreateAntSRM() throws Exception {
assertClassForName(
AntSRMSensorManager.class, R.string.srm_ant_bridge_sensor_type);
assertClassForName(AntSRMSensorManager.class, R.string.srm_ant_bridge_sensor_type);
}
private void assertClassForName(Class c, int i) {
private void assertClassForName(Class<?> c, int i) {
sharedPreferences.edit()
.putString(getContext().getString(R.string.sensor_type_key),
getContext().getString(i))