Skip to content

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gdeluna-branch committed Jul 18, 2023
1 parent bb33252 commit 1f6f25e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,22 +137,6 @@ public void run() {
}, null);
}

@Test
public void testLogout_hasGAIDv1() {
// TODO: initSession needed first
}

@Test
public void testPing_hasGAIDv1() {
// TODO: Ping does not get enqueued
}

@Test
public void testClose_hasGAIDv1() {
// TODO: Close happens in a Session context
// Note that closeSessionInternal cannot be run on a non-UI thread
}

@Test
public void testStandardEvent_hasGAIDv2() {
initBranchInstance(TEST_KEY);
Expand Down
14 changes: 0 additions & 14 deletions Branch-SDK/src/main/java/io/branch/referral/DeviceInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,20 +217,6 @@ void updateRequestWithV2Params(ServerRequest serverRequest, PrefHelper prefHelpe
} catch (JSONException ignore) { }
}

/**
* Update the server request with params for all events
* @param serverRequest
* @param prefHelper
* @param requestObj
*/
void updateRequestWithParamsAllEvents(ServerRequest serverRequest, PrefHelper prefHelper, JSONObject requestObj){
try {
requestObj.put(Defines.Jsonkey.Debug.getKey(), Branch.isDeviceIDFetchDisabled());
}
catch (JSONException ignore){
}
}

private void maybeAddTuneFields(ServerRequest serverRequest, JSONObject requestObj) throws JSONException {
if (serverRequest.isInitializationOrEventRequest()) {
// fields for parity with Tune traffic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,14 @@ protected void setPost(JSONObject post) throws JSONException {

if (getBranchRemoteAPIVersion() == BRANCH_API_VERSION.V1) {
DeviceInfo.getInstance().updateRequestWithV1Params(this, params_);
} else {
}
else {
JSONObject userDataObj = new JSONObject();
params_.put(Defines.Jsonkey.UserData.getKey(), userDataObj);
DeviceInfo.getInstance().updateRequestWithV2Params(this, prefHelper_, userDataObj);
}
DeviceInfo.getInstance().updateRequestWithParamsAllEvents(this, prefHelper_, params_);

params_.put(Defines.Jsonkey.Debug.getKey(), Branch.isDeviceIDFetchDisabled());
}

/**
Expand Down
11 changes: 0 additions & 11 deletions Branch-SDK/src/test/java/android/text/TextUtils.java

This file was deleted.

0 comments on commit 1f6f25e

Please sign in to comment.