This source file includes following definitions.
- observer_
 
- GetDisplayState
 
- AddObserver
 
- RemoveObserver
 
- SetAvailable
 
- GetObserver
 
#include "chrome/browser/extensions/api/braille_display_private/mock_braille_controller.h"
namespace extensions {
namespace api {
namespace braille_display_private {
MockBrailleController::MockBrailleController()
    : available_(false), observer_(NULL) {}
scoped_ptr<DisplayState> MockBrailleController::GetDisplayState() {
  scoped_ptr<DisplayState> state(new DisplayState());
  state->available = available_;
  if (available_)
    state->text_cell_count.reset(new int(18));
  return state.Pass();
}
void MockBrailleController::AddObserver(BrailleObserver* observer) {
  CHECK(observer_ == NULL);
  observer_ = observer;
}
void MockBrailleController::RemoveObserver(BrailleObserver* observer) {
  CHECK(observer == observer_);
  observer_ = NULL;
}
void MockBrailleController::SetAvailable(bool available) {
  available_ = available;
}
BrailleObserver* MockBrailleController::GetObserver() const {
  return observer_;
}
}  
}  
}