Index: chrome/browser/sync/test/null_transaction_observer.h |
diff --git a/chrome/browser/sync/test/null_transaction_observer.h b/chrome/browser/sync/test/null_transaction_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..74aa9d78e312dd3df4ac6ada81d239aa654bbc67 |
--- /dev/null |
+++ b/chrome/browser/sync/test/null_transaction_observer.h |
@@ -0,0 +1,21 @@ |
+// Copyright (c) 2011 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_TEST_NULL_TRANSACTION_OBSERVER_H_ |
+#define CHROME_BROWSER_SYNC_TEST_NULL_TRANSACTION_OBSERVER_H_ |
+#pragma once |
+ |
+#include "chrome/browser/sync/util/weak_handle.h" |
+ |
+namespace syncable { |
+ |
+class TransactionObserver; |
+ |
+// Returns an initialized weak handle to a transaction observer that |
+// does nothing. |
+browser_sync::WeakHandle<TransactionObserver> NullTransactionObserver(); |
+ |
+} // namespace syncable |
+ |
+#endif // CHROME_BROWSER_SYNC_TEST_NULL_TRANSACTION_OBSERVER_H_ |