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; |