Home
last modified time | relevance | path

Searched refs:scoper (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/base/memory/
Dscoped_ptr_unittest.cc109 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST() local
111 EXPECT_TRUE(scoper.get()); in TEST()
113 EXPECT_EQ(10, scoper->SomeMeth(10)); in TEST()
114 EXPECT_EQ(10, scoper.get()->SomeMeth(10)); in TEST()
115 EXPECT_EQ(10, (*scoper).SomeMeth(10)); in TEST()
121 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST() local
123 EXPECT_TRUE(scoper.get()); in TEST()
125 scoper.reset(new ConDecLogger(&constructed)); in TEST()
127 EXPECT_TRUE(scoper.get()); in TEST()
129 scoper.reset(); in TEST()
[all …]
Dscoped_vector_unittest.cc266 ScopedVector<T> PassThru(ScopedVector<T> scoper) { in PassThru() argument
267 return scoper.Pass(); in PassThru()
/external/chromium/base/memory/
Dscoped_ptr_unittest.cc32 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST() local
34 EXPECT_TRUE(scoper.get()); in TEST()
36 EXPECT_EQ(10, scoper->SomeMeth(10)); in TEST()
37 EXPECT_EQ(10, scoper.get()->SomeMeth(10)); in TEST()
38 EXPECT_EQ(10, (*scoper).SomeMeth(10)); in TEST()
44 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST() local
46 EXPECT_TRUE(scoper.get()); in TEST()
48 scoper.reset(new ConDecLogger(&constructed)); in TEST()
50 EXPECT_TRUE(scoper.get()); in TEST()
52 scoper.reset(); in TEST()
[all …]
/external/chromium_org/third_party/libaddressinput/chromium/cpp/test/util/
Dscoped_ptr_unittest.cc37 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST() local
39 EXPECT_TRUE(scoper.get()); in TEST()
41 EXPECT_EQ(10, scoper->SomeMeth(10)); in TEST()
42 EXPECT_EQ(10, scoper.get()->SomeMeth(10)); in TEST()
43 EXPECT_EQ(10, (*scoper).SomeMeth(10)); in TEST()
49 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST() local
51 EXPECT_TRUE(scoper.get()); in TEST()
53 scoper.reset(new ConDecLogger(&constructed)); in TEST()
55 EXPECT_TRUE(scoper.get()); in TEST()
57 scoper.reset(); in TEST()
[all …]
/external/chromium_org/ui/base/cocoa/
Dtracking_area_unittest.mm75 ScopedCrTrackingArea scoper([trackingArea_ retain]);
76 [[scoper.get() owner] performMessage];
86 ScopedCrTrackingArea scoper;
87 EXPECT_FALSE(scoper.get());
89 scoper.reset([trackingArea_ retain]);
90 [[scoper.get() owner] performMessage];
93 [[scoper.get() owner] performMessage];
/external/chromium/chrome/browser/ui/cocoa/
Dtracking_area_unittest.mm90 ScopedCrTrackingArea scoper([trackingArea_ retain]);
91 [[scoper.get() owner] performMessage];
101 ScopedCrTrackingArea scoper;
102 EXPECT_FALSE(scoper.get());
104 scoper.reset([trackingArea_ retain]);
105 [[scoper.get() owner] performMessage];
108 [[scoper.get() owner] performMessage];
/external/chromium_org/base/
Dbind_helpers.h370 explicit PassedWrapper(T scoper) : is_valid_(true), scoper_(scoper.Pass()) {}
516 static inline internal::PassedWrapper<T> Passed(T scoper) {
517 return internal::PassedWrapper<T>(scoper.Pass());
520 static inline internal::PassedWrapper<T> Passed(T* scoper) {
521 return internal::PassedWrapper<T>(scoper->Pass());
Dbind_unittest.cc156 T PassThru(T scoper) { in PassThru() argument
157 return scoper.Pass(); in PassThru()
/external/chromium_org/mojo/public/bindings/lib/
Dpassable.h54 void operator=(ScopedHandleBase<HandleType> scoper) {
55 reset(scoper.release());
/external/chromium_org/base/test/
Dmock_chrome_application_mac.mm24 base::AutoReset<BOOL> scoper(&handlingSendEvent_, YES);
/external/chromium_org/content/shell/browser/
Dshell_application_mac.mm21 base::AutoReset<BOOL> scoper(&handlingSendEvent_, YES);
/external/chromium_org/ui/gl/
Dgl_context_cgl.cc263 CGLRendererInfoObjDeleter> scoper(&renderer_info); in GetTotalGpuMemory() local
/external/chromium_org/chrome/browser/ui/cocoa/
Dcocoa_profile_test.mm34 // thread. If the scoper in TestingBrowserProcess, owned by ChromeTestSuite,
/external/chromium_org/remoting/host/mac/
Dme2me_preference_pane.mm118 // called, so put it in a scoper and .release() it when given to the
/external/chromium/base/
Dmessage_pump_mac.mm27 // A scoper for autorelease pools created from message pump run loops.
/external/chromium_org/chrome/browser/mac/
Dinstall_from_dmg.mm483 // A simple scoper that calls DASessionScheduleWithRunLoop when created and
/external/chromium_org/base/message_loop/
Dmessage_pump_mac.mm42 // A scoper for autorelease pools created from message pump run loops.