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

Unified Diff: sync/test/test_transaction_observer.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « sync/test/test_directory_backing_store.cc ('k') | sync/test/test_transaction_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/test_transaction_observer.h
diff --git a/sync/test/test_transaction_observer.h b/sync/test/test_transaction_observer.h
deleted file mode 100644
index 005479e9ecc1b0e8fe203b6354b3b93ef914a930..0000000000000000000000000000000000000000
--- a/sync/test/test_transaction_observer.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 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 SYNC_TEST_TEST_TRANSACTION_OBSERVER_H_
-#define SYNC_TEST_TEST_TRANSACTION_OBSERVER_H_
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "sync/internal_api/public/base/model_type.h"
-#include "sync/syncable/transaction_observer.h"
-#include "sync/syncable/write_transaction_info.h"
-
-namespace syncer {
-namespace syncable {
-
-// This class acts as a TransactionObserver for the syncable::Directory.
-// It gathers information that is useful for writing test assertions.
-class TestTransactionObserver :
- public base::SupportsWeakPtr<TestTransactionObserver>,
- public TransactionObserver {
- public:
- TestTransactionObserver();
- ~TestTransactionObserver() override;
- void OnTransactionWrite(
- const ImmutableWriteTransactionInfo& write_transaction_info,
- ModelTypeSet models_with_changes) override;
-
- // Returns the number of transactions observed.
- //
- // Transactions are generated only when meaningful changes are made. For most
- // testing purposes, you may assume that this counts the number of syncer
- // nudges generated.
- int transactions_observed();
-
- private:
- int transactions_observed_;
-
- DISALLOW_COPY_AND_ASSIGN(TestTransactionObserver);
-};
-
-} // namespace syncable
-} // namespace syncer
-
-
-#endif // SYNC_TEST_TEST_TRANSACTION_OBSERVER_H_
« no previous file with comments | « sync/test/test_directory_backing_store.cc ('k') | sync/test/test_transaction_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698