18 #ifndef ABSL_STRINGS_INTERNAL_ESCAPING_TEST_COMMON_H_ 19 #define ABSL_STRINGS_INTERNAL_ESCAPING_TEST_COMMON_H_ 25 namespace strings_internal {
33 static const std::array<base64_testcase, 5> testcase{{
38 {
"I was always good at math and science, and I never realized " 39 "that was unusual or somehow undesirable. So one of the things " 40 "I care a lot about is helping to remove that stigma, " 41 "to show girls that you can be feminine, you can like the things " 42 "that girls like, but you can also be really good at technology. " 43 "You can be really good at building things." 44 " - Marissa Meyer, Newsweek, 2010-12-22" "\n",
46 "SSB3YXMgYWx3YXlzIGdvb2QgYXQgbWF0aCBhbmQgc2NpZW5jZSwgYW5kIEkg" 47 "bmV2ZXIgcmVhbGl6ZWQgdGhhdCB3YXMgdW51c3VhbCBvciBzb21laG93IHVu" 48 "ZGVzaXJhYmxlLiBTbyBvbmUgb2YgdGhlIHRoaW5ncyBJIGNhcmUgYSBsb3Qg" 49 "YWJvdXQgaXMgaGVscGluZyB0byByZW1vdmUgdGhhdCBzdGlnbWEsIHRvIHNo" 50 "b3cgZ2lybHMgdGhhdCB5b3UgY2FuIGJlIGZlbWluaW5lLCB5b3UgY2FuIGxp" 51 "a2UgdGhlIHRoaW5ncyB0aGF0IGdpcmxzIGxpa2UsIGJ1dCB5b3UgY2FuIGFs" 52 "c28gYmUgcmVhbGx5IGdvb2QgYXQgdGVjaG5vbG9neS4gWW91IGNhbiBiZSBy" 53 "ZWFsbHkgZ29vZCBhdCBidWlsZGluZyB0aGluZ3MuIC0gTWFyaXNzYSBNZXll" 54 "ciwgTmV3c3dlZWssIDIwMTAtMTItMjIK" },
56 {
"Typical first year for a new cluster: " 60 "~1 network rewiring " 63 "~8 network maintenances " 66 "~dozens of minor 30-second blips for dns " 67 "~1000 individual machine failures " 68 "~thousands of hard drive failures " 69 "slow disks, bad memory, misconfigured machines, flaky machines, etc." 70 " - Jeff Dean, The Joys of Real Hardware" "\n",
72 "VHlwaWNhbCBmaXJzdCB5ZWFyIGZvciBhIG5ldyBjbHVzdGVyOiB-MC41IG92" 73 "ZXJoZWF0aW5nIH4xIFBEVSBmYWlsdXJlIH4xIHJhY2stbW92ZSB-MSBuZXR3" 74 "b3JrIHJld2lyaW5nIH4yMCByYWNrIGZhaWx1cmVzIH41IHJhY2tzIGdvIHdv" 75 "bmt5IH44IG5ldHdvcmsgbWFpbnRlbmFuY2VzIH4xMiByb3V0ZXIgcmVsb2Fk" 76 "cyB-MyByb3V0ZXIgZmFpbHVyZXMgfmRvemVucyBvZiBtaW5vciAzMC1zZWNv" 77 "bmQgYmxpcHMgZm9yIGRucyB-MTAwMCBpbmRpdmlkdWFsIG1hY2hpbmUgZmFp" 78 "bHVyZXMgfnRob3VzYW5kcyBvZiBoYXJkIGRyaXZlIGZhaWx1cmVzIHNsb3cg" 79 "ZGlza3MsIGJhZCBtZW1vcnksIG1pc2NvbmZpZ3VyZWQgbWFjaGluZXMsIGZs" 80 "YWt5IG1hY2hpbmVzLCBldGMuIC0gSmVmZiBEZWFuLCBUaGUgSm95cyBvZiBS" 81 "ZWFsIEhhcmR3YXJlCg" },
83 {
"I'm the head of the webspam team at Google. " 84 "That means that if you type your name into Google and get porn back, " 85 "it's my fault. Unless you're a porn star, in which case porn is a " 86 "completely reasonable response." 87 " - Matt Cutts, Google Plus" "\n",
89 "SSdtIHRoZSBoZWFkIG9mIHRoZSB3ZWJzcGFtIHRlYW0gYXQgR29vZ2xlLiAg" 90 "VGhhdCBtZWFucyB0aGF0IGlmIHlvdSB0eXBlIHlvdXIgbmFtZSBpbnRvIEdv" 91 "b2dsZSBhbmQgZ2V0IHBvcm4gYmFjaywgaXQncyBteSBmYXVsdC4gVW5sZXNz" 92 "IHlvdSdyZSBhIHBvcm4gc3RhciwgaW4gd2hpY2ggY2FzZSBwb3JuIGlzIGEg" 93 "Y29tcGxldGVseSByZWFzb25hYmxlIHJlc3BvbnNlLiAtIE1hdHQgQ3V0dHMs" 94 "IEdvb2dsZSBQbHVzCg" },
96 {
"It will still be a long time before machines approach human " 98 "But luckily, machines don't actually have to be intelligent; " 99 "they just have to fake it. Access to a wealth of information, " 100 "combined with a rudimentary decision-making capacity, " 101 "can often be almost as useful. Of course, the results are better yet " 102 "when coupled with intelligence. A reference librarian with access to " 103 "a good search engine is a formidable tool." 104 " - Craig Silverstein, Siemens Pictures of the Future, Spring 2004" 107 "SXQgd2lsbCBzdGlsbCBiZSBhIGxvbmcgdGltZSBiZWZvcmUgbWFjaGluZXMg" 108 "YXBwcm9hY2ggaHVtYW4gaW50ZWxsaWdlbmNlLiBCdXQgbHVja2lseSwgbWFj" 109 "aGluZXMgZG9uJ3QgYWN0dWFsbHkgaGF2ZSB0byBiZSBpbnRlbGxpZ2VudDsg" 110 "dGhleSBqdXN0IGhhdmUgdG8gZmFrZSBpdC4gQWNjZXNzIHRvIGEgd2VhbHRo" 111 "IG9mIGluZm9ybWF0aW9uLCBjb21iaW5lZCB3aXRoIGEgcnVkaW1lbnRhcnkg" 112 "ZGVjaXNpb24tbWFraW5nIGNhcGFjaXR5LCBjYW4gb2Z0ZW4gYmUgYWxtb3N0" 113 "IGFzIHVzZWZ1bC4gT2YgY291cnNlLCB0aGUgcmVzdWx0cyBhcmUgYmV0dGVy" 114 "IHlldCB3aGVuIGNvdXBsZWQgd2l0aCBpbnRlbGxpZ2VuY2UuIEEgcmVmZXJl" 115 "bmNlIGxpYnJhcmlhbiB3aXRoIGFjY2VzcyB0byBhIGdvb2Qgc2VhcmNoIGVu" 116 "Z2luZSBpcyBhIGZvcm1pZGFibGUgdG9vbC4gLSBDcmFpZyBTaWx2ZXJzdGVp" 117 "biwgU2llbWVucyBQaWN0dXJlcyBvZiB0aGUgRnV0dXJlLCBTcHJpbmcgMjAw" 131 #endif // ABSL_STRINGS_INTERNAL_ESCAPING_TEST_COMMON_H_ absl::string_view cyphertext
const std::array< base64_testcase, 5 > & base64_strings()
absl::string_view plaintext