Home | History | Annotate | Download | only in engine
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_
      6 #define CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_
      7 #pragma once
      8 
      9 #include <string>
     10 
     11 #include "chrome/browser/sync/engine/syncapi.h"
     12 #include "testing/gmock/include/gmock/gmock.h"
     13 
     14 class ReadNodeMock : public sync_api::ReadNode {
     15  public:
     16   ReadNodeMock();
     17   virtual ~ReadNodeMock();
     18 
     19   MOCK_METHOD2(InitByClientTagLookup,
     20                bool(syncable::ModelType model_type, const std::string& tag));
     21   MOCK_CONST_METHOD0(GetAutofillProfileSpecifics,
     22                      const sync_pb::AutofillProfileSpecifics&());
     23   MOCK_CONST_METHOD0(GetId, int64());
     24   MOCK_CONST_METHOD0(GetFirstChildId, int64());
     25   MOCK_CONST_METHOD0(GetFirstChild, int64());
     26   MOCK_CONST_METHOD0(GetSuccessorId, int64());
     27   MOCK_METHOD1(InitByIdLookup, bool(int64 id));
     28 };
     29 
     30 #endif  // CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_
     31 
     32