Home
last modified time | relevance | path

Searched refs:delegate_ (Results 1 – 24 of 24) sorted by relevance

/external/libweave/src/notification/
Dnotification_parser_unittest.cc36 testing::StrictMock<MockNotificationDelegate> delegate_; member in weave::NotificationParserTest
72 EXPECT_CALL(delegate_, OnCommandCreated(MatchDict(expected_json), "foo")) in TEST_F()
74 EXPECT_TRUE(ParseNotificationJson(*json, &delegate_, "foo")); in TEST_F()
85 EXPECT_CALL(delegate_, OnDeviceDeleted(_)).WillOnce(SaveArg<0>(&device_id)); in TEST_F()
86 EXPECT_TRUE(ParseNotificationJson(*json, &delegate_, "foo")); in TEST_F()
109 EXPECT_FALSE(ParseNotificationJson(*json, &delegate_, "bar")); in TEST_F()
131 EXPECT_FALSE(ParseNotificationJson(*json, &delegate_, "baz")); in TEST_F()
154 EXPECT_TRUE(ParseNotificationJson(*json, &delegate_, "quux")); in TEST_F()
Dxmpp_stream_parser.cc11 XmppStreamParser::XmppStreamParser(Delegate* delegate) : delegate_{delegate} { in XmppStreamParser()
63 if (delegate_) in OnOpenElement()
64 delegate_->OnStreamStart(node_name, std::move(attributes)); in OnOpenElement()
74 if (delegate_) in OnCloseElement()
75 delegate_->OnStreamEnd(node_name); in OnCloseElement()
85 } else if (delegate_) { in OnCloseElement()
86 delegate_->OnStanza(std::move(node)); in OnCloseElement()
Dpull_channel.cc35 delegate_ = delegate; in Start()
40 CHECK(delegate_); in RePost()
50 delegate_ = nullptr; in Stop()
55 if (delegate_) in UpdatePullInterval()
63 delegate_->OnCommandCreated(empty_dict, GetName()); in OnTimer()
Dxmpp_channel.cc140 } else if (delegate_) { in OnStreamEnd()
141 delegate_->OnPermanentFailure(); in OnStreamEnd()
263 if (delegate_) in OnSubscribed()
264 delegate_->OnConnected(GetName()); in OnSubscribed()
282 if (json_dict && delegate_) in HandleMessageStanza()
283 ParseNotificationJson(*json_dict, delegate_, GetName()); in HandleMessageStanza()
376 Start(delegate_); in Restart()
381 delegate_ = delegate; in Start()
387 if (IsConnected() && delegate_) in Stop()
388 delegate_->OnDisconnected(); in Stop()
Dpull_channel.h45 NotificationDelegate* delegate_{nullptr};
Dxmpp_stream_parser.h78 Delegate* delegate_; variable
Dxmpp_channel.h151 NotificationDelegate* delegate_{nullptr};
/external/libchrome/base/trace_event/
Dmemory_dump_manager_unittest.cc120 delegate_.reset(new MemoryDumpManagerDelegateForTesting); in SetUp()
126 delegate_.reset(); in TearDown()
144 mdm_->Initialize(delegate_.get(), is_coordinator); in InitializeMemoryDumpManager()
179 scoped_ptr<MemoryDumpManagerDelegateForTesting> delegate_; member in base::trace_event::MemoryDumpManagerTest
198 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(0); in TEST_F()
207 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(3); in TEST_F()
219 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(3); in TEST_F()
237 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(1); in TEST_F()
248 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(1); in TEST_F()
266 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(2); in TEST_F()
[all …]
Dmemory_dump_manager.cc125 : delegate_(nullptr), in MemoryDumpManager()
150 DCHECK(!delegate_); in Initialize()
151 delegate_ = delegate; in Initialize()
306 delegate = delegate_; in RequestGlobalDump()
526 DCHECK(delegate_); // At this point we must have a delegate. in OnTraceLogEnabled()
608 return delegate_->GetTracingProcessId(); in GetTracingProcessId()
Dmemory_dump_manager.h290 MemoryDumpManagerDelegate* delegate_; // Not owned.
/external/webrtc/talk/app/webrtc/
Dandroidvideocapturer.cc47 : delegate_(delegate) { in FrameFactory()
127 rtc::scoped_refptr<AndroidVideoCapturerDelegate> delegate_; member in webrtc::AndroidVideoCapturer::FrameFactory
133 delegate_(delegate), in AndroidVideoCapturer()
137 std::string json_string = delegate_->GetSupportedFormats(); in AndroidVideoCapturer()
176 frame_factory_ = new AndroidVideoCapturer::FrameFactory(delegate_.get()); in Start()
180 delegate_->Start(capture_format.width, capture_format.height, fps, this); in Start()
193 delegate_->Stop(); in Stop()
Dandroidvideocapturer.h78 AndroidVideoCapturerDelegate* delegate() { return delegate_.get(); } in delegate()
96 rtc::scoped_refptr<AndroidVideoCapturerDelegate> delegate_; variable
/external/libchrome/base/threading/
Dsimple_thread.cc72 delegate_(delegate) { in DelegateSimpleThread()
79 delegate_(delegate) { in DelegateSimpleThread()
86 DCHECK(delegate_) << "Tried to call Run without a delegate (called twice?)"; in Run()
87 delegate_->Run(); in Run()
88 delegate_ = NULL; in Run()
Dsimple_thread.h144 Delegate* delegate_;
/external/pdfium/testing/
Dembedder_test.cpp49 delegate_ = default_delegate_.get(); in EmbedderTest()
237 FPDF_PAGE page = delegate_->GetPage(form_handle_, document_, page_number); in LoadAndCachePage()
283 test->delegate_->UnsupportedHandler(type); in UnsupportedHandlerTrampoline()
293 return test->delegate_->Alert(message, title, type, icon); in AlertTrampoline()
301 return test->delegate_->SetTimer(msecs, fn); in SetTimerTrampoline()
307 return test->delegate_->KillTimer(id); in KillTimerTrampoline()
315 return test->delegate_->GetPage(test->form_handle(), document, page_index); in GetPageTrampoline()
Dembedder_test.h76 delegate_ = delegate ? delegate : default_delegate_.get(); in SetDelegate()
117 Delegate* delegate_; variable
/external/libchrome/components/timers/
Dalarm_timer_chromeos.cc348 delegate_->SetTimerFiredCallbackForTest(test_callback); in SetTimerFiredCallbackForTest()
352 delegate_ = make_scoped_refptr(new AlarmTimer::Delegate( in Init()
354 can_wake_from_suspend_ = delegate_->CanWakeFromSuspend(); in Init()
368 delegate_->Stop(); in Stop()
415 delegate_->Reset(base::Timer::GetCurrentDelay()); in Reset()
Dalarm_timer_chromeos.h66 scoped_refptr<Delegate> delegate_; variable
/external/libchrome/base/message_loop/
Dmessage_pump_mac.mm124 : delegate_(NULL),
232 Delegate* last_delegate = delegate_;
243 delegate_ = delegate;
309 if (!delegate_) {
310 // This point can be reached with a NULL delegate_ if Run is not on the
326 bool did_work = delegate_->DoWork();
330 delegate_->DoDelayedWork(&next_time);
368 if (!delegate_) {
369 // This point can be reached with a NULL delegate_ if Run is not on the
385 bool did_work = delegate_->DoIdleWork();
[all …]
Dmessage_pump_mac.h187 Delegate* delegate_; variable
/external/chromium-trace/catapult/third_party/polymer/components/polymer/
Dpolymer.js6665 template.delegate_ && template.delegate_.prepareBinding);
6728 createInstance: function(model, bindingDelegate, delegate_) { argument
6730 delegate_ = this.newDelegate_(bindingDelegate);
6731 else if (!delegate_)
6732 delegate_ = this.delegate_;
6740 var map = getInstanceBindingMap(content, delegate_);
6766 delegate_,
6790 return this.delegate_ && this.delegate_.raw;
6804 this.delegate_ = undefined;
6816 this.delegate_ = delegate;
[all …]
Dpolymer.min.js13delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelFnScheduled_||(a.setModelFnSche…
/external/chromium-trace/catapult/tracing/third_party/components/polymer/
Dpolymer.js6665 template.delegate_ && template.delegate_.prepareBinding);
6728 createInstance: function(model, bindingDelegate, delegate_) { argument
6730 delegate_ = this.newDelegate_(bindingDelegate);
6731 else if (!delegate_)
6732 delegate_ = this.delegate_;
6740 var map = getInstanceBindingMap(content, delegate_);
6766 delegate_,
6790 return this.delegate_ && this.delegate_.raw;
6804 this.delegate_ = undefined;
6816 this.delegate_ = delegate;
[all …]
Dpolymer.min.js13delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelFnScheduled_||(a.setModelFnSche…