sync_datatype_helper.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_DATATYPE_HELPER_H_ 6#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_DATATYPE_HELPER_H_ 7 8#include "base/basictypes.h" 9 10class SyncTest; 11 12namespace sync_datatype_helper { 13 14// Associates an instance of SyncTest with sync_datatype_helper. Must be 15// called before any of the methods in the per-datatype helper namespaces can be 16// used. 17void AssociateWithTest(SyncTest* test); 18 19// Returns a pointer to the instance of SyncTest associated with the 20// per-datatype helpers after making sure it is valid. 21SyncTest* test(); 22 23} // namespace sync_datatype_helper 24 25#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_DATATYPE_HELPER_H_ 26