com.android.repository.testframework
Class FakeSettingsController

java.lang.Object
  extended by com.android.repository.testframework.FakeSettingsController
All Implemented Interfaces:
SettingsController

public class FakeSettingsController
extends java.lang.Object
implements SettingsController

A simple SettingsController where values can be set directly.


Constructor Summary
FakeSettingsController(boolean forceHttp)
           
 
Method Summary
 Channel getChannel()
          Gets the current channel.
 boolean getForceHttp()
           
 void setChannel(Channel channel)
           
 void setForceHttp(boolean force)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeSettingsController

public FakeSettingsController(boolean forceHttp)
Method Detail

getForceHttp

public boolean getForceHttp()
Specified by:
getForceHttp in interface SettingsController
Returns:
If true, all connections should be made using HTTP rather than HTTPS.

setForceHttp

public void setForceHttp(boolean force)
Specified by:
setForceHttp in interface SettingsController
Parameters:
force - If true, all connections should be made using HTTP rather than HTTPS.

setChannel

public void setChannel(Channel channel)

getChannel

public Channel getChannel()
Description copied from interface: SettingsController
Gets the current channel. Only packages of channels at least as stable as specified will be downloaded.

Specified by:
getChannel in interface SettingsController