diff options
Diffstat (limited to 'chrome/browser/sync/syncable/syncable_mock.h')
-rwxr-xr-x | chrome/browser/sync/syncable/syncable_mock.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/chrome/browser/sync/syncable/syncable_mock.h b/chrome/browser/sync/syncable/syncable_mock.h deleted file mode 100755 index 9412fe0..0000000 --- a/chrome/browser/sync/syncable/syncable_mock.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2010 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 CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_MOCK_H_ -#define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_MOCK_H_ -#pragma once - -#include <string> - -#include "chrome/browser/sync/syncable/syncable.h" -#include "testing/gmock/include/gmock/gmock.h" -#include "testing/gtest/include/gtest/gtest.h" - -using syncable::Directory; -using syncable::EntryKernel; - -class MockDirectory : public Directory { - public: - MockDirectory() { - init_kernel("myk"); - } - MOCK_METHOD1(GetEntryByHandle, syncable::EntryKernel*(int64)); - - MOCK_METHOD2(set_last_downloadstamp, void(syncable::ModelType, int64)); - - MOCK_METHOD1(GetEntryByClientTag, - syncable::EntryKernel*(const std::string&)); -}; - -class MockSyncableWriteTransaction : public syncable::WriteTransaction { - public: - explicit MockSyncableWriteTransaction(Directory *directory) : - WriteTransaction(directory, syncable::UNITTEST, "dontcare.cpp", 25) { - } -}; - - -#endif // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_MOCK_H_ - |