This source file includes following definitions.
- AssociateWithTest
- test
#include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
namespace {
static SyncTest* test = NULL;
}
namespace sync_datatype_helper {
void AssociateWithTest(SyncTest* test) {
ASSERT_TRUE(test != NULL) << "Cannot associate with null test.";
ASSERT_TRUE(::test == NULL) << "Already associated with a test.";
::test = test;
}
SyncTest* test() {
EXPECT_TRUE(::test != NULL) << "Must call AssociateWithTest first.";
return ::test;
}
}