1234567891011121314151617181920212223242526272829303132333435 |
- // Copyright 2016 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef ASH_COMPONENTS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_
- #define ASH_COMPONENTS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_
- #include "base/component_export.h"
- namespace ash {
- class SimpleGeolocationRequest;
- // This is global hook, that allows to monitor SimpleGeolocationRequest
- // in tests.
- //
- // Note: we need COMPONENT_EXPORT(ASH_GEOLOCATION) for tests.
- class COMPONENT_EXPORT(ASH_GEOLOCATION)
- SimpleGeolocationRequestTestMonitor {
- public:
- SimpleGeolocationRequestTestMonitor();
- SimpleGeolocationRequestTestMonitor(
- const SimpleGeolocationRequestTestMonitor&) = delete;
- SimpleGeolocationRequestTestMonitor& operator=(
- const SimpleGeolocationRequestTestMonitor&) = delete;
- virtual ~SimpleGeolocationRequestTestMonitor();
- virtual void OnRequestCreated(SimpleGeolocationRequest* request);
- virtual void OnStart(SimpleGeolocationRequest* request);
- };
- } // namespace ash
- #endif // ASH_COMPONENTS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_
|