| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 5 #ifndef SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 
| 6 #define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 6 #define SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| 11 #include "chrome/browser/sync/syncable/syncable.h" | 11 #include "sync/syncable/syncable.h" | 
| 12 #include "chrome/browser/sync/test/fake_encryptor.h" | 12 #include "sync/test/fake_encryptor.h" | 
| 13 #include "chrome/browser/sync/test/null_directory_change_delegate.h" | 13 #include "sync/test/null_directory_change_delegate.h" | 
| 14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" | 
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" | 
| 16 | 16 | 
| 17 using syncable::Directory; | 17 using syncable::Directory; | 
| 18 using syncable::EntryKernel; | 18 using syncable::EntryKernel; | 
| 19 | 19 | 
| 20 class MockDirectory : public Directory { | 20 class MockDirectory : public Directory { | 
| 21  public: | 21  public: | 
| 22   explicit MockDirectory(browser_sync::UnrecoverableErrorHandler* handler); | 22   explicit MockDirectory(browser_sync::UnrecoverableErrorHandler* handler); | 
| 23   virtual ~MockDirectory(); | 23   virtual ~MockDirectory(); | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 36   syncable::NullDirectoryChangeDelegate delegate_; | 36   syncable::NullDirectoryChangeDelegate delegate_; | 
| 37 }; | 37 }; | 
| 38 | 38 | 
| 39 class MockSyncableWriteTransaction : public syncable::WriteTransaction { | 39 class MockSyncableWriteTransaction : public syncable::WriteTransaction { | 
| 40  public: | 40  public: | 
| 41   MockSyncableWriteTransaction( | 41   MockSyncableWriteTransaction( | 
| 42       const tracked_objects::Location& from_here, Directory *directory); | 42       const tracked_objects::Location& from_here, Directory *directory); | 
| 43 }; | 43 }; | 
| 44 | 44 | 
| 45 | 45 | 
| 46 #endif  // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 46 #endif  // SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 
| 47 | 47 | 
| OLD | NEW | 
|---|