Ah...you want symbol color coding. I guess it's useful when you use TEST_F(). To bad it has to mess up the Defs tool window though.
Try this out:
If you have a workspace called myworkspace.vpw, add the code below to a file called myworkspace_cpp.h. Then retag your workspace. These steps take less time than adding the defines one by one with the GUI.
/////////////////////////////////////////////////////////////////////////////
/// Google Test
/////////////////////////////////////////////////////////////////////////////
#define GTEST_DISALLOW_ASSIGN_(type)\
void operator=(type const &)
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)\
type(type const &);\
GTEST_DISALLOW_ASSIGN_(type)
#define GTEST_TEST_CLASS_NAME_(test_case_name, test_name) \
test_case_name##_##test_name##_Test
#define GTEST_TEST_(test_case_name, test_name, parent_class, parent_id)\
class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\
public:\
GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {}\
private:\
virtual void TestBody();\
static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_;\
GTEST_DISALLOW_COPY_AND_ASSIGN_(\
GTEST_TEST_CLASS_NAME_(test_case_name, test_name));\
};\
\
::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name)\
::test_info_ =\
::testing::internal::MakeAndRegisterTestInfo(\
#test_case_name, #test_name, NULL, NULL, \
(parent_id), \
parent_class::SetUpTestCase, \
parent_class::TearDownTestCase, \
new ::testing::internal::TestFactoryImpl<\
GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>);\
void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody()
#define GTEST_TEST(test_case_name, test_name)\
GTEST_TEST_(test_case_name, test_name, \
::testing::Test, ::testing::internal::GetTestTypeId())
# define TEST(test_case_name, test_name) GTEST_TEST(test_case_name, test_name)
#define TEST_F(test_fixture, test_name)\
GTEST_TEST_(test_fixture, test_name, test_fixture, \
::testing::internal::GetTypeId<test_fixture>())
/////////////////////////////////////////////////////////////////////////////
/// End Google Test
/////////////////////////////////////////////////////////////////////////////
I did notice a small bug where the next time you open the project, the symbol coloring is off until you make an edit. We will look into this.
It is possible to set up these defines for all workspaces and tagging. I just thought you would want to test this out first.