DELAY_LOADING,
};
- enum ErrorSimulation {
- ALWAYS_SUCCEED,
- FORCE_ERROR
- };
-
// |loading_delay| denotes if the check-in should be delayed.
- // |error_simulation| denotes if we should simulate server error.
- GCMClientMock(LoadingDelay loading_delay, ErrorSimulation error_simulation);
+ explicit GCMClientMock(LoadingDelay loading_delay);
virtual ~GCMClientMock();
// Overridden from GCMClient:
virtual void Send(const std::string& app_id,
const std::string& receiver_id,
const OutgoingMessage& message) OVERRIDE;
+ virtual void SetRecording(bool recording) OVERRIDE;
+ virtual void ClearActivityLogs() OVERRIDE;
virtual GCMStatistics GetStatistics() const OVERRIDE;
// Initiate the loading that has been delayed.
Delegate* delegate_;
Status status_;
LoadingDelay loading_delay_;
- ErrorSimulation error_simulation_;
base::WeakPtrFactory<GCMClientMock> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(GCMClientMock);