Home
last modified time | relevance | path

Searched refs:received_data (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/content/renderer/device_orientation/
Ddevice_motion_event_pump_unittest.cc90 blink::WebDeviceMotionData& received_data = listener->data_; in TEST_F() local
92 EXPECT_TRUE(received_data.hasAccelerationX); in TEST_F()
93 EXPECT_EQ(1, (double)received_data.accelerationX); in TEST_F()
94 EXPECT_TRUE(received_data.hasAccelerationX); in TEST_F()
95 EXPECT_EQ(2, (double)received_data.accelerationY); in TEST_F()
96 EXPECT_TRUE(received_data.hasAccelerationY); in TEST_F()
97 EXPECT_EQ(3, (double)received_data.accelerationZ); in TEST_F()
98 EXPECT_TRUE(received_data.hasAccelerationZ); in TEST_F()
99 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityX); in TEST_F()
100 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityY); in TEST_F()
[all …]
Ddevice_orientation_event_pump_unittest.cc110 blink::WebDeviceOrientationData& received_data = listener_->data_; in TEST_F() local
112 EXPECT_TRUE(received_data.allAvailableSensorsAreActive); in TEST_F()
113 EXPECT_EQ(1, (double)received_data.alpha); in TEST_F()
114 EXPECT_TRUE(received_data.hasAlpha); in TEST_F()
115 EXPECT_EQ(2, (double)received_data.beta); in TEST_F()
116 EXPECT_TRUE(received_data.hasBeta); in TEST_F()
117 EXPECT_EQ(3, (double)received_data.gamma); in TEST_F()
118 EXPECT_TRUE(received_data.hasGamma); in TEST_F()
139 blink::WebDeviceOrientationData& received_data = listener_->data_; in TEST_F() local
141 EXPECT_TRUE(received_data.allAvailableSensorsAreActive); in TEST_F()
[all …]
/external/chromium_org/remoting/codec/
Daudio_encoder_opus_unittest.cc90 double EstimateSignalShift(const std::vector<int16>& received_data) { in EstimateSignalShift() argument
92 i < received_data.size() / kChannels - 1; i++) { in EstimateSignalShift()
93 int16 this_sample = received_data[i * kChannels]; in EstimateSignalShift()
94 int16 next_sample = received_data[(i + 1) * kChannels]; in EstimateSignalShift()
109 const std::vector<int16>& received_data) { in ValidateReceivedData() argument
110 double shift = EstimateSignalShift(received_data); in ValidateReceivedData()
113 i < received_data.size() / kChannels; i++) { in ValidateReceivedData()
114 double d = received_data[i * kChannels] - in ValidateReceivedData()
117 d = received_data[i * kChannels + 1] - in ValidateReceivedData()
121 double deviation = sqrt(diff_sqare_sum / received_data.size()) in ValidateReceivedData()
[all …]
/external/chromium_org/content/browser/renderer_host/p2p/
Dsocket_host_tcp_unittest.cc138 std::string received_data; in TEST_F() local
139 received_data.append(IntToSize(packet1.size())); in TEST_F()
140 received_data.append(packet1.begin(), packet1.end()); in TEST_F()
141 received_data.append(IntToSize(packet2.size())); in TEST_F()
142 received_data.append(packet2.begin(), packet2.end()); in TEST_F()
143 received_data.append(IntToSize(packet3.size())); in TEST_F()
144 received_data.append(packet3.begin(), packet3.end()); in TEST_F()
156 while (pos < received_data.size()) { in TEST_F()
157 size_t step_size = std::min(step_sizes[step], received_data.size() - pos); in TEST_F()
158 socket_->AppendInputData(&received_data[pos], step_size); in TEST_F()
[all …]
/external/chromium/net/websockets/
Dwebsocket_job.cc223 std::string received_data; in OnReceivedData() local
228 received_data += in OnReceivedData()
233 if (delegate_ && !received_data.empty()) in OnReceivedData()
235 socket, received_data.data(), received_data.size()); in OnReceivedData()
386 std::string received_data = handshake_response_->GetResponse(); in SaveNextCookie() local
390 received_data += in SaveNextCookie()
399 socket_, received_data.data(), received_data.size()); in SaveNextCookie()
Dwebsocket_job_unittest.cc73 const std::string& received_data() const { return received_data_; } in received_data() function in net::MockSocketStreamDelegate
271 EXPECT_EQ(kHandshakeResponseMessage, delegate.received_data()); in TEST_F()
323 EXPECT_TRUE(delegate.received_data().empty()); in TEST_F()
328 EXPECT_TRUE(delegate.received_data().empty()); in TEST_F()
331 EXPECT_EQ(kHandshakeResponseMessage, delegate.received_data()); in TEST_F()
409 EXPECT_EQ(kHandshakeResponseExpected, delegate.received_data()); in TEST_F()
496 EXPECT_EQ(kHandshakeResponseExpected, delegate.received_data()); in TEST_F()
/external/chromium_org/net/spdy/
Dspdy_stream_test_util.cc88 std::string received_data(len, '\0'); in TakeReceivedData() local
92 received_data_queue_.Dequeue(string_as_array(&received_data), len)); in TakeReceivedData()
94 return received_data; in TakeReceivedData()
/external/chromium_org/net/websockets/
Dwebsocket_job_test.cc138 const std::string& received_data() const { return received_data_; } in received_data() function in net::__anon76957a480111::MockSocketStreamDelegate
328 if (received_data().size() == kHandshakeResponseWithoutCookieLength) in DoSendData()
419 const std::string& received_data() const { in received_data() function in net::WebSocketJobTest
424 return delegate->received_data(); in received_data()
558 EXPECT_EQ(kHandshakeResponseWithoutCookie, delegate.received_data()); in TestSimpleHandshake()
586 EXPECT_TRUE(delegate.received_data().empty()); in TestSlowHandshake()
591 EXPECT_FALSE(delegate.received_data().empty()); in TestSlowHandshake()
592 EXPECT_EQ(kHandshakeResponseWithoutCookie, delegate.received_data()); in TestSlowHandshake()
639 EXPECT_EQ(kHandshakeResponseWithoutCookie, delegate.received_data()); in TEST_P()
674 EXPECT_EQ(kHandshakeResponseWithoutCookie, delegate.received_data()); in TestHandshakeWithCookie()
[all …]
Dwebsocket_job.cc484 std::vector<char> received_data(handshake_response.begin(), in NotifyHeadersComplete() local
486 received_data.insert(received_data.end(), in NotifyHeadersComplete()
493 DCHECK(!received_data.empty()); in NotifyHeadersComplete()
496 socket_.get(), &received_data.front(), received_data.size()); in NotifyHeadersComplete()
/external/chromium/net/spdy/
Dspdy_stream_unittest.cc89 const std::string& received_data() const { return received_data_; } in received_data() function in net::__anon5a26ce110111::TestSpdyStreamDelegate
244 EXPECT_EQ(std::string("\0hello!\xff", 8), delegate->received_data()); in TEST_F()
/external/chromium_org/media/audio/win/
Daudio_low_latency_input_win_unittest.cc56 const std::vector<uint8>& received_data() const { return received_data_; } in received_data() function in media::FakeAudioInputCallback
478 EXPECT_FALSE(sink.received_data().empty()); in TEST()
/external/chromium_org/webkit/child/
Dmultipart_response_delegate_unittest.cc319 int responses, int received_data, in VariousChunkSizesTest() argument
354 EXPECT_EQ(received_data, client.received_data_); in VariousChunkSizesTest()
/external/chromium/webkit/glue/
Dmultipart_response_delegate_unittest.cc319 int responses, int received_data, in VariousChunkSizesTest() argument
354 EXPECT_EQ(received_data, client.received_data_); in VariousChunkSizesTest()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/
Dstandalone.py677 received_data = self.rfile.read(bytes_to_receive_in_this_loop)
678 for c in received_data:
682 bytes_to_receive -= len(received_data)