Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / services / gcm / gcm_client_mock.h
index 2a1004a..ce080ce 100644 (file)
@@ -25,14 +25,8 @@ class GCMClientMock : public GCMClient {
     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:
@@ -54,6 +48,8 @@ class GCMClientMock : public 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.
@@ -88,7 +84,6 @@ class GCMClientMock : public GCMClient {
   Delegate* delegate_;
   Status status_;
   LoadingDelay loading_delay_;
-  ErrorSimulation error_simulation_;
   base::WeakPtrFactory<GCMClientMock> weak_ptr_factory_;
 
   DISALLOW_COPY_AND_ASSIGN(GCMClientMock);