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

Unified Diff: chrome/browser/sync/test/integration/sync_datatype_helper.cc

Issue 2716413003: Initial clear server data impl (Closed)
Patch Set: Clear server data command Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/sync_datatype_helper.cc
diff --git a/chrome/browser/sync/test/integration/sync_datatype_helper.cc b/chrome/browser/sync/test/integration/sync_datatype_helper.cc
index be6a44d0d9cce9a5b18056fd7688521697d93d5b..b75eeab1047f3e8a2d9f748d0d0187bf95274f98 100644
--- a/chrome/browser/sync/test/integration/sync_datatype_helper.cc
+++ b/chrome/browser/sync/test/integration/sync_datatype_helper.cc
@@ -21,6 +21,11 @@ void AssociateWithTest(SyncTest* test) {
::test = test;
}
+void DissociateWithTest(SyncTest* test) {
+ ASSERT_EQ(test, ::test) << "Not associated with this test.";
+ ::test = nullptr;
+}
+
SyncTest* test() {
EXPECT_NE(nullptr, ::test) << "Must call AssociateWithTest first.";
return ::test;

Powered by Google App Engine
This is Rietveld 408576698