class LocationProviderForTestArbitrator : public GeolocationProviderImpl {
public:
LocationProviderForTestArbitrator() : mock_arbitrator_(NULL) {}
- virtual ~LocationProviderForTestArbitrator() {}
+ ~LocationProviderForTestArbitrator() override {}
// Only valid for use on the geolocation thread.
MockLocationArbitrator* mock_arbitrator() const {
protected:
// GeolocationProviderImpl implementation:
- virtual LocationArbitrator* CreateArbitrator() OVERRIDE;
+ LocationArbitrator* CreateArbitrator() override;
private:
MockLocationArbitrator* mock_arbitrator_;
class AsyncMockGeolocationObserver : public MockGeolocationObserver {
public:
- virtual void OnLocationUpdate(const Geoposition& position) OVERRIDE {
+ void OnLocationUpdate(const Geoposition& position) override {
MockGeolocationObserver::OnLocationUpdate(position);
base::MessageLoop::current()->Quit();
}
: expected_(expected) {}
virtual bool MatchAndExplain(const Geoposition& actual,
- MatchResultListener* listener) const OVERRIDE {
+ MatchResultListener* listener) const override {
return actual.latitude == expected_.latitude &&
actual.longitude == expected_.longitude &&
actual.altitude == expected_.altitude &&
actual.error_message == expected_.error_message;
}
- virtual void DescribeTo(::std::ostream* os) const OVERRIDE {
+ virtual void DescribeTo(::std::ostream* os) const override {
*os << "which matches the expected position";
}
- virtual void DescribeNegationTo(::std::ostream* os) const OVERRIDE {
+ virtual void DescribeNegationTo(::std::ostream* os) const override {
*os << "which does not match the expected position";
}
provider_(new LocationProviderForTestArbitrator) {
}
- virtual ~GeolocationProviderTest() {}
+ ~GeolocationProviderTest() override {}
LocationProviderForTestArbitrator* provider() { return provider_.get(); }