Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Added a constructor that passes the endpoint#168

Open
kberos wants to merge 1 commit into
google:masterfrom
kberos:master
Open

Added a constructor that passes the endpoint#168
kberos wants to merge 1 commit into
google:masterfrom
kberos:master

Conversation

@kberos

@kberos kberos commented Feb 3, 2016

Copy link
Copy Markdown

We need the flexibility to have a constructor that passes the endpoint to allow testing against a mock. The default original constructor applies the default GCM endpoint. The additional one allows to pass an endpoint of your choice.

…nstructor is used, it sets the Default GCM_SEND_ENDPOINT
@kberos

kberos commented Feb 3, 2016

Copy link
Copy Markdown
Author

Created new pull request because I had different git commit email. I signed the agreement.

Thanks,
Kosmas

@kroikie kroikie self-assigned this Feb 4, 2016
String value) {
nonNull(body).append('&')
.append(nonNull(name)).append('=').append(nonNull(value));
.append(nonNull(name)).append('=').append(nonNull(value));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove additional indentation please.

@kroikie

kroikie commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Thanks, this looks like a reasonable addition, could you add a test before I merge?

@kroikie

kroikie commented Feb 24, 2016

Copy link
Copy Markdown
Contributor

Hi @kberos thanks again for the PR, if you can add those tests I'd be happy to merge.

@kroikie

kroikie commented Mar 23, 2016

Copy link
Copy Markdown
Contributor

Hi @kberos looking fwd to merging this PR once you add those tests, thanks.

@cbornet

cbornet commented Jul 27, 2016

Copy link
Copy Markdown

👍 This is needed for transition from GCM to FCM

@matzew

matzew commented Aug 31, 2016

Copy link
Copy Markdown

👍

@matzew

matzew commented Dec 20, 2016

Copy link
Copy Markdown

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants