Searched refs:weak_ptr (Results 1 - 25 of 57) sorted by relevance

123

/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/
H A Dnot_less_than.fail.cpp12 // template <class T> class weak_ptr;
23 const std::weak_ptr<int> w1(p1);
24 const std::weak_ptr<int> w2(p2);
H A Downer_before_shared_ptr.pass.cpp12 // weak_ptr
24 const std::weak_ptr<int> w1(p1);
25 const std::weak_ptr<int> w2(p2);
26 const std::weak_ptr<int> w3(p3);
H A Downer_before_weak_ptr.pass.cpp12 // weak_ptr
14 // template<class U> bool owner_before(const weak_ptr<U>& b);
24 const std::weak_ptr<int> w1(p1);
25 const std::weak_ptr<int> w2(p2);
26 const std::weak_ptr<int> w3(p3);
H A Dexpired.pass.cpp12 // weak_ptr
33 std::weak_ptr<A> wp;
39 std::weak_ptr<A> wp(sp0);
H A Dlock.pass.cpp12 // weak_ptr
33 std::weak_ptr<A> wp;
41 std::weak_ptr<A> wp(sp0);
50 std::weak_ptr<A> wp(sp0);
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/
H A Dtypes.pass.cpp12 // template<class T> class weak_ptr
25 static_assert((std::is_same<std::weak_ptr<A>::element_type, A>::value), "");
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
H A Ddefault.pass.cpp12 // template<class T> class weak_ptr
14 // weak_ptr();
23 std::weak_ptr<A> p;
H A Dweak_ptr_Y.pass.cpp12 // weak_ptr
14 // template<class Y> weak_ptr(const weak_ptr<Y>& r);
15 // template<class Y> weak_ptr(weak_ptr<Y> &&r);
56 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); }
59 void sink (std::weak_ptr<T> &&) {}
63 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<
[all...]
H A Dweak_ptr.pass.cpp12 // weak_ptr
14 // weak_ptr(const weak_ptr& r);
15 // weak_ptr(weak_ptr &&r)
56 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); }
59 void sink (std::weak_ptr<T> &&) {}
65 const std::weak_ptr<A> pA(ps);
70 std::weak_ptr<
[all...]
H A Dshared_ptr_Y.pass.cpp12 // weak_ptr
14 // template<class Y> weak_ptr(const shared_ptr<Y>& r);
56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::weak_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::weak_ptr<B>, std::shared_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::weak_ptr<C> >::value), "");
65 std::weak_ptr<B> pB(pA);
83 std::weak_ptr<B> pB(pA);
H A DAndroid.mk23 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr
24 test_src := weak_ptr.pass.cpp
/external/chromium_org/jingle/notifier/base/
H A Dweak_xmpp_client_unittest.cc9 #include "base/memory/weak_ptr.h"
76 base::WeakPtr<WeakXmppClient> weak_ptr = weak_xmpp_client->AsWeakPtr(); local
77 EXPECT_TRUE(weak_ptr.get());
78 RaiseSignals(weak_ptr.get());
81 EXPECT_FALSE(weak_ptr.get());
94 base::WeakPtr<WeakXmppClient> weak_ptr = weak_xmpp_client->AsWeakPtr(); local
95 EXPECT_TRUE(weak_ptr.get());
96 RaiseSignals(weak_ptr.get());
99 EXPECT_FALSE(weak_ptr.get());
112 base::WeakPtr<WeakXmppClient> weak_ptr local
[all...]
H A Dxmpp_connection_unittest.cc12 #include "base/memory/weak_ptr.h"
175 base::WeakPtr<rtc::Task> weak_ptr; local
177 WillOnce(SaveArg<0>(&weak_ptr));
186 EXPECT_EQ(xmpp_connection.weak_xmpp_client_.get(), weak_ptr.get());
189 EXPECT_EQ(NULL, weak_ptr.get());
194 base::WeakPtr<rtc::Task> weak_ptr;
196 WillOnce(SaveArg<0>(&weak_ptr));
209 EXPECT_EQ(xmpp_connection.weak_xmpp_client_.get(), weak_ptr.get());
215 base::WeakPtr<rtc::Task> weak_ptr; local
217 WillOnce(SaveArg<0>(&weak_ptr));
[all...]
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/
H A Downer_before_weak_ptr.pass.cpp14 // template <class U> bool owner_before(weak_ptr<U> const& b) const;
24 const std::weak_ptr<int> w1(p1);
25 const std::weak_ptr<int> w2(p2);
26 const std::weak_ptr<int> w3(p3);
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/
H A Downer_less.pass.cpp20 // bool operator()(shared_ptr<T> const&, weak_ptr<T> const&) const;
21 // bool operator()(weak_ptr<T> const&, shared_ptr<T> const&) const;
25 // struct owner_less<weak_ptr<T> >
26 // : binary_function<weak_ptr<T>, weak_ptr<T>, bool>
29 // bool operator()(weak_ptr<T> const&, weak_ptr<T> const&) const;
30 // bool operator()(shared_ptr<T> const&, weak_ptr<T> const&) const;
31 // bool operator()(weak_ptr<T> const&, shared_ptr<T> const&) const;
42 const std::weak_ptr<in
[all...]
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/
H A Dweak_ptr.pass.cpp12 // weak_ptr
14 // weak_ptr& operator=(const weak_ptr& r);
47 const std::weak_ptr<A> pA(ps);
49 std::weak_ptr<A> pB;
65 std::weak_ptr<A> pA(ps);
67 std::weak_ptr<A> pB;
H A Dweak_ptr_Y.pass.cpp12 // weak_ptr
14 // template<class Y> weak_ptr& operator=(const weak_ptr<Y>& r);
47 const std::weak_ptr<A> pA(ps);
49 std::weak_ptr<B> pB;
65 std::weak_ptr<A> pA(ps);
67 std::weak_ptr<B> pB;
H A DAndroid.mk19 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/weak_ptr
20 test_src := weak_ptr.pass.cpp
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.mod/
H A Dswap.pass.cpp12 // weak_ptr
14 // void swap(weak_ptr& r);
36 std::weak_ptr<A> w1(p1);
39 std::weak_ptr<A> w2(p2);
H A Dreset.pass.cpp12 // weak_ptr
14 // void swap(weak_ptr& r);
34 std::weak_ptr<A> w1(p1);
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.spec/
H A Dswap.pass.cpp12 // weak_ptr
14 // template<class T> void swap(weak_ptr<T>& a, weak_ptr<T>& b)
36 std::weak_ptr<A> w1(p1);
39 std::weak_ptr<A> w2(p2);
/external/chromium_org/base/timer/
H A Dmock_timer_unittest.cc70 base::WeakPtr<HasWeakPtr> weak_ptr(has_weak_ptr->AsWeakPtr());
73 ASSERT_TRUE(weak_ptr.get());
77 ASSERT_TRUE(weak_ptr.get());
79 ASSERT_FALSE(weak_ptr.get());
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
H A Dweak_ptr.pass.cpp14 // template<class Y> explicit shared_ptr(const weak_ptr<Y>& r);
45 std::weak_ptr<A> wp;
58 std::weak_ptr<A> wp(sp0);
67 std::weak_ptr<A> wp(sp0);
/external/chromium_org/google_apis/drive/
H A Drequest_sender_unittest.cc141 base::WeakPtr<AuthenticatedRequestInterface> weak_ptr = request->GetWeakPtr(); local
150 EXPECT_FALSE(weak_ptr); // The request object is deleted.
164 base::WeakPtr<AuthenticatedRequestInterface> weak_ptr = request->GetWeakPtr(); local
172 EXPECT_FALSE(weak_ptr); // The request object is deleted.
184 base::WeakPtr<AuthenticatedRequestInterface> weak_ptr = request->GetWeakPtr(); local
192 EXPECT_FALSE(weak_ptr); // The request object is deleted.
203 base::WeakPtr<AuthenticatedRequestInterface> weak_ptr = request->GetWeakPtr(); local
214 EXPECT_FALSE(weak_ptr); // The request object is deleted.
223 base::WeakPtr<AuthenticatedRequestInterface> weak_ptr = request->GetWeakPtr(); local
248 EXPECT_FALSE(weak_ptr);
[all...]
/external/stlport/stlport/
H A Dmemory76 template<class T> class weak_ptr;
82 template<class T> void swap(weak_ptr<T> & a, weak_ptr<T> & b);
96 # include <boost/weak_ptr.hpp>
113 using ::boost::weak_ptr;
117 // weak_ptr IO

Completed in 479 milliseconds

123