Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-10162: BlackBerry: Implement Ti.Stream.pump for Anvil #138

Merged
merged 2 commits into from Aug 24, 2012

Conversation

dlifshitz-maca
Copy link

Reviewer: Martin

TIMOB-10162: BlackBerry: Implement Ti.Stream.pump for Anvil

[Issues Fixed]
TIMOB-10162: BlackBerry: Implement Ti.Stream.pump for Anvil

[Changes]
Stream.yml
- updated

NativeBufferObject.cpp
- function clear
  - make sure the size stays the same

NativeTCPSocketObject.cpp
- function read
  - if can't read, call the error handler

bootstrap.js
- implemented function Ti.Stream.pump

[Tests]
Test 1: Run test code
1) Merge from https://github.com/Macadamian/titanium_mobile/pull/137
2) Use the app.js attached to the jira
3) Verify the stream is pumped

Harut and others added 2 commits August 24, 2012 15:51
Reviewer: David L.

Change Log:
- implemented Ti.Stream.pump function in the boostram.js
- fixed an issue with buffer.clear function

Test Cases:
- run the java script , make sure pump is reading from the buffer, and
  calling the call back function and callback's arguments values are
    correct
- make sure the output is expected
NativeTCPSocketObject.cpp
- function read
  - if can't read, call the error handler

bootstrap.js
- function Ti.Stream.pump
  - convert to async pattern

app.js
- revert
@Larochelle
Copy link

Looks ok, approved

Larochelle added a commit that referenced this pull request Aug 24, 2012
TIMOB-10162: BlackBerry: Implement Ti.Stream.pump for Anvil
@Larochelle Larochelle merged commit 22abe85 into Macadamian:blackberry Aug 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants