Home
last modified time | relevance | path

Searched refs:golden (Results 1 – 25 of 82) sorted by relevance

1234

/external/owasp/sanitizer/src/tests/org/owasp/html/
DCssTokensTest.java117 golden = tests[i+1]; in testStringEscaping() local
119 assertEquals(input, golden != null ? golden : "", tokens.normalizedCss); in testStringEscaping()
121 assertEquals(input, it.hasNext(), golden != null); in testStringEscaping()
122 if (golden != null) { in testStringEscaping()
124 assertEquals(input, golden, it.next()); in testStringEscaping()
197 golden = tests[i+1]; in testIdentReencoding() local
201 if (golden != null) { in testIdentReencoding()
202 int colon = golden.lastIndexOf(':'); in testIdentReencoding()
204 type = TokenType.valueOf(golden.substring(colon + 1)); in testIdentReencoding()
205 golden = golden.substring(0, colon); in testIdentReencoding()
[all …]
DHtmlLexerTest.java54 String golden = Resources.toString( in testHtmlLexer() local
59 assertEquals(golden, actual.toString()); in testHtmlLexer()
148 private static void assertTokens(String markup, String... golden) { in assertTokens() argument
155 assertEquals(Arrays.asList(golden), actual); in assertTokens()
DEncodingTest.java43 String golden = in testDecodeHtml() local
45 assertEquals(golden, Encoding.decodeHtml(html)); in testDecodeHtml()
48 assertSame(golden, Encoding.decodeHtml(golden)); in testDecodeHtml()
DHtmlStreamRendererTest.java283 private void assertNormalized(String golden, String htmlInput) in assertNormalized() argument
285 assertEquals(golden, normalize(htmlInput)); in assertNormalized()
288 if (!golden.equals(htmlInput)) { in assertNormalized()
289 assertNormalized(golden, golden); in assertNormalized()
/external/skqp/tests/
DSkGaussFilterTest.cpp32 double sigma; std::vector<double> golden; in DEF_TEST() local
33 std::tie(sigma, golden) = test; in DEF_TEST()
40 REPORTER_ASSERT(r, static_cast<size_t>(n) == golden.size()); in DEF_TEST()
43 for (size_t i = 0; i < golden.size(); i++) { in DEF_TEST()
44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
DRecordingXfermodeTest.cpp140 BitmapBackedCanvasStrategy golden(drawer.imageInfo()); in DEF_TEST() local
152 const SkBitmap& goldenBM = golden.recordAndReplay(drawer, clip, mode); in DEF_TEST()
/external/skia/tests/
DSkGaussFilterTest.cpp32 double sigma; std::vector<double> golden; in DEF_TEST() local
33 std::tie(sigma, golden) = test; in DEF_TEST()
40 REPORTER_ASSERT(r, static_cast<size_t>(n) == golden.size()); in DEF_TEST()
43 for (size_t i = 0; i < golden.size(); i++) { in DEF_TEST()
44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
/external/grpc-grpc/test/cpp/codegen/
Dgolden_file_test.cc43 std::ifstream golden(golden_file); in run_test() local
46 ASSERT_TRUE(golden.good()); in run_test()
51 gold_oss << golden.rdbuf(); in run_test()
55 golden.close(); in run_test()
/external/autotest/client/site_tests/video_GlitchDetection/
Dcontrol.collect_images_chameleon7 PURPOSE = "Collect golden images to be used in video image comparison tests."
16 we use image comparison techniques. In it, we collect golden images ahead of
18 against the golden ones.
20 What makes the golden images golden is the build they are collected on. Other
25 To collect golden images run a command in this format:
Dcontrol.chameleon.h264.480p.collectgoldenimages7 PURPOSE = "Collects golden images to be used in image comparison video tests"
18 Run this test to collect golden images for a certain device and build. This
Dcontrol.chameleon.vp8.720p.collectgoldenimages7 PURPOSE = "Collects golden images to be used in image comparison video tests"
18 Run this test to collect golden images for a certain device and build. This
Dcontrol.chameleon.h264.720p.collectgoldenimages7 PURPOSE = "Collects golden images to be used in image comparison video tests"
18 Run this test to collect golden images for a certain device and build. This
Dcontrol.chameleon.vp8.480p.collectgoldenimages7 PURPOSE = "Collects golden images to be used in image comparison video tests"
18 Run this test to collect golden images for a certain device and build. This
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_unittest.cc567 string golden; in TEST_F() local
571 &golden, true)); in TEST_F()
574 string gzip_compressed = Compress(golden, options); in TEST_F()
577 string not_compressed = Compress(golden, options); in TEST_F()
582 string zlib_compressed = Compress(golden, options); in TEST_F()
586 EXPECT_GT(not_compressed.size(), golden.size()); in TEST_F()
595 EXPECT_TRUE(Uncompress(not_compressed) == golden); in TEST_F()
596 EXPECT_TRUE(Uncompress(gzip_compressed) == golden); in TEST_F()
597 EXPECT_TRUE(Uncompress(zlib_compressed) == golden); in TEST_F()
666 string golden = "abcdefghijklmnopqrstuvwxyz"; in TEST_F() local
[all …]
/external/libbrillo/brillo/
Dtest_helpers.h19 inline void ExpectFileEquals(const char* golden, const char* file_path) { in ExpectFileEquals() argument
22 EXPECT_EQ(golden, contents); in ExpectFileEquals()
/external/autotest/tko/parsers/test/templates/
Dbase.py26 golden = self.parser_result_store[GOLDEN]
30 self.assertEquals(golden, fresh_copy)
/external/grpc-grpc-java/protobuf-lite/src/test/java/io/grpc/protobuf/lite/
DProtoLiteUtilsTest.java154 byte[] golden = ByteStreams.toByteArray(marshaller.stream(proto)); in testDrainTo_all()
160 assertArrayEquals(golden, baos.toByteArray()); in testDrainTo_all()
166 final byte[] golden; in testDrainTo_partial()
170 golden = ByteStreams.toByteArray(is); in testDrainTo_partial()
178 assertArrayEquals(golden, baos.toByteArray()); in testDrainTo_partial()
/external/tensorflow/tensorflow/tools/api/tests/
DBUILD20 "//tensorflow/tools/api/golden:api_golden_v1",
21 "//tensorflow/tools/api/golden:api_golden_v2",
/external/googletest/googlemock/test/
Dgmock_output_test.py158 golden = golden_file.read()
162 self.assertEquals(golden, output)
/external/google-breakpad/src/testing/test/
Dgmock_output_test.py160 golden = golden_file.read()
164 self.assertEquals(golden, output)
/external/deqp-deps/glslang/gtests/
DREADME.md22 line option, which, if supplied, will overwrite the golden files under
24 This serves as an easy way to update golden files.
/external/flatbuffers/
DBUILD155 ":tests/monsterdata_test.golden",
157 ":tests/prototest/test.golden",
159 ":tests/prototest/test_union.golden",
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DBytecodeTypeInferenceTest.java47 String golden = Files.asCharSource(GOLDEN_PATH.toFile(), StandardCharsets.UTF_8).read().trim(); in testTypeInference() local
48 assertThat(inferenceResult).isEqualTo(golden); in testTypeInference()
/external/golang-protobuf/proto/
Dany_test.go65 type golden struct { struct
72 func makeGolden() []golden {
200 return []golden{
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DProtocolNegotiatorsTest.java345 final String golden = "isThisThingOn?"; in httpProxy_completes() local
346 ChannelFuture negotiationFuture = channel.writeAndFlush(bb(golden, channel)); in httpProxy_completes()
372 assertEquals(golden, preface); in httpProxy_completes()
409 final String golden = "isThisThingOn?"; in httpProxy_500() local
410 ChannelFuture negotiationFuture = channel.writeAndFlush(bb(golden, channel)); in httpProxy_500()

1234