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

Unified Diff: sync/test/engine/test_directory_setter_upper.h

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes from review comments Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: sync/test/engine/test_directory_setter_upper.h
diff --git a/sync/test/engine/test_directory_setter_upper.h b/sync/test/engine/test_directory_setter_upper.h
index 5dbce2d6cc5397d660f0622376da5cf81da9adf4..8d2a0dcf3a4f951b5fcfe6140f4f72c311d528cd 100644
--- a/sync/test/engine/test_directory_setter_upper.h
+++ b/sync/test/engine/test_directory_setter_upper.h
@@ -34,18 +34,18 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
-#include "base/scoped_temp_dir.h"
#include "sync/test/fake_sync_encryption_handler.h"
#include "sync/test/null_directory_change_delegate.h"
#include "sync/util/test_unrecoverable_error_handler.h"
#include "testing/gmock/include/gmock/gmock.h"
+namespace syncer {
+
namespace syncable {
class Directory;
+ class MockTransactionObserver;
}
-namespace syncer {
-
class TestDirectorySetterUpper {
public:
TestDirectorySetterUpper();
@@ -63,13 +63,17 @@ class TestDirectorySetterUpper {
SyncEncryptionHandler* encryption_handler() { return &encryption_handler_; }
+ syncable::MockTransactionObserver* transaction_observer() {
+ return mock_transaction_observer_.get();
+ }
+
private:
syncable::NullDirectoryChangeDelegate delegate_;
+ scoped_ptr<syncable::MockTransactionObserver> mock_transaction_observer_;
TestUnrecoverableErrorHandler handler_;
void RunInvariantCheck();
- ScopedTempDir temp_dir_;
FakeSyncEncryptionHandler encryption_handler_;
scoped_ptr<syncable::Directory> directory_;
std::string name_;

Powered by Google App Engine
This is Rietveld 408576698