Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: chrome/browser/sync/internal_api/syncapi_mock.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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_INTERNAL_API_SYNCAPI_MOCK_H_
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNCAPI_MOCK_H_
7 #pragma once
8
9 #include "chrome/browser/sync/internal_api/write_transaction.h"
10 #include "chrome/browser/sync/syncable/syncable.h"
11 #include "chrome/browser/sync/syncable/syncable_mock.h"
12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h"
14
15 using sync_api::WriteTransaction;
16
17 class MockWriteTransaction : public sync_api::WriteTransaction {
18 public:
19 MockWriteTransaction(const tracked_objects::Location& from_here,
20 Directory* directory)
21 : sync_api::WriteTransaction() {
22 SetTransaction(new MockSyncableWriteTransaction(from_here, directory));
23 }
24 };
25
26 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNCAPI_MOCK_H_
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698