Home | History | Annotate | Download | only in test

Lines Matching full:thread_local

966   ThreadLocal<String> thread_local;
968 EXPECT_EQ(thread_local.pointer(), &(thread_local.get()));
971 thread_local.set("foo");
972 EXPECT_EQ(thread_local.pointer(), &(thread_local.get()));
976 ThreadLocal<String> thread_local;
977 const ThreadLocal<String>& const_thread_local = thread_local;
979 EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer());
981 thread_local.set("foo");
982 EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer());
1091 ThreadLocal<String> thread_local("foo");
1092 EXPECT_STREQ("foo", thread_local.get().c_str());
1094 thread_local.set("bar");
1095 EXPECT_STREQ("bar", thread_local.get().c_str());
1098 RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result));
1127 void CallThreadLocalGet(ThreadParam thread_local) {
1128 thread_local->get();
1138 // the default value of objects managed by thread_local.
1139 ThreadLocal<DestructorTracker> thread_local;
1144 thread_local.get();
1150 // Now thread_local has died. It should have destroyed both the
1167 // the default value of objects managed by thread_local.
1168 ThreadLocal<DestructorTracker> thread_local;
1174 &CallThreadLocalGet, &thread_local, NULL);
1184 // Now thread_local has died. The default value should have been
1194 ThreadLocal<String> thread_local;
1195 thread_local.set("Foo");
1196 EXPECT_STREQ("Foo", thread_local.get().c_str());
1199 RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result));