Skip to content

Commit

Permalink
Added Testcases for CpuArchHelper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshsondhi88 committed Sep 15, 2014
1 parent 2dc2a4b commit 781371b
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.github.hiteshsondhi88.libffmpeg;

import android.os.Build;

import junit.framework.TestCase;

public class CpuArchHelperTest extends TestCase {

public void testGetCpuArch() throws Exception {
CpuArch cpuArch = CpuArchHelper.getCpuArch();
assertNotNull(cpuArch);
if (Build.CPU_ABI.equals(CpuArchHelper.getx86CpuAbi()) || Build.CPU_ABI.equals(CpuArchHelper.getArmeabiv7CpuAbi())) {
assertNotSame(cpuArch, CpuArch.NONE);
} else {
assertEquals(cpuArch, CpuArch.NONE);
}
}
}

0 comments on commit 781371b

Please sign in to comment.