X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=core%2Ftest%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fqrcode%2FQRCodeBlackBox2TestCase.java;h=2f88b46cbbeaa9dd1370483e28d6d851737b49dd;hb=24cce4a4fafd6e87eaeed2c8492171ae99bc8f6e;hp=6630fff7f28a8553423cf559edb3f55e85627b94;hpb=6df20358a6510e9c704fd83b3492006d1a9bf1a5;p=zxing.git diff --git a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox2TestCase.java b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox2TestCase.java index 6630fff7..2f88b46c 100644 --- a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox2TestCase.java +++ b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox2TestCase.java @@ -1,5 +1,5 @@ /* - * Copyright 2008 Google Inc. + * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,17 +17,20 @@ package com.google.zxing.qrcode; import com.google.zxing.MultiFormatReader; +import com.google.zxing.BarcodeFormat; import com.google.zxing.common.AbstractBlackBoxTestCase; -import java.io.File; - /** - * @author srowen@google.com (Sean Owen) + * @author Sean Owen */ public final class QRCodeBlackBox2TestCase extends AbstractBlackBoxTestCase { public QRCodeBlackBox2TestCase() { - super(new File("test/data/blackbox/qrcode-2"), new MultiFormatReader(), 1.0); + super("test/data/blackbox/qrcode-2", new MultiFormatReader(), BarcodeFormat.QR_CODE); + addTest(23, 23, 0.0f); + addTest(20, 20, 90.0f); + addTest(21, 21, 180.0f); + addTest(19, 19, 270.0f); } } \ No newline at end of file