/external/chromium_org/third_party/WebKit/Source/platform/network/ |
D | ResourceRequestTest.cpp | 19 ResourceRequest original; in TEST() local 20 original.setURL(KURL(ParsedURLString, "http://www.example.com/test.htm")); in TEST() 21 original.setCachePolicy(UseProtocolCachePolicy); in TEST() 22 original.setTimeoutInterval(10); in TEST() 23 … original.setFirstPartyForCookies(KURL(ParsedURLString, "http://www.example.com/first_party.htm")); in TEST() 24 original.setHTTPMethod(AtomicString("GET", AtomicString::ConstructFromLiteral)); in TEST() 25 original.setHTTPHeaderField(AtomicString("Foo"), AtomicString("Bar")); in TEST() 26 original.setHTTPHeaderField(AtomicString("Piyo"), AtomicString("Fuga")); in TEST() 27 original.setPriority(ResourceLoadPriorityLow, 20); in TEST() 30 original.setHTTPBody(originalBody); in TEST() [all …]
|
/external/chromium_org/third_party/closure_linter/closure_linter/ |
D | fixjsstyle_test.py | 80 original = [ 104 self._AssertFixes(original, expected, include_header=False) 108 original = [ 128 self._AssertFixes(original, expected) 137 original = [ 154 self._AssertFixes(original, expected, include_header=False) 161 original = [ 181 self._AssertFixes(original, expected, include_header=False) 185 original = [ 205 self._AssertFixes(original, expected) [all …]
|
D | errorrules_test.py | 48 original = [ 63 self._AssertErrors(original, expected) 72 original = [ 87 self._AssertErrors(original, expected) 89 def _AssertErrors(self, original, expected_errors, include_header=True): argument 92 original = self._GetHeader() + original 96 runner.Run('testing.js', error_accumulator, source=original)
|
/external/chromium_org/third_party/WebKit/Source/platform/text/ |
D | SegmentedStringTest.cpp | 42 SegmentedString original(String("cde")); in TEST() local 44 SegmentedString copied(original); in TEST() 46 assigned = original; in TEST() 47 EXPECT_EQ("cde", original.toString()); in TEST() 48 EXPECT_EQ('c', original.currentChar()); in TEST() 52 original.push('a'); in TEST() 54 SegmentedString copied(original); in TEST() 56 assigned = original; in TEST() 57 EXPECT_EQ("acde", original.toString()); in TEST() 58 EXPECT_EQ('a', original.currentChar()); in TEST() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TransposedTableTest.java | 31 Table<Integer, String, Character> original = HashBasedTable.create(); in create() local 32 Table<String, Integer, Character> table = Tables.transpose(original); in create() 39 Table<Integer, String, Character> original = HashBasedTable.create(); in testTransposeTransposed() local 40 assertSame(original, Tables.transpose(Tables.transpose(original))); in testTransposeTransposed() 44 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutOriginalModifiesTranspose() local 45 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutOriginalModifiesTranspose() 46 original.put(1, "foo", 'a'); in testPutOriginalModifiesTranspose() 51 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutTransposeModifiesOriginal() local 52 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutTransposeModifiesOriginal() 54 assertEquals((Character) 'a', original.get(1, "foo")); in testPutTransposeModifiesOriginal() [all …]
|
/external/chromium_org/sync/util/ |
D | cryptographer_unittest.cc | 46 sync_pb::PasswordSpecificsData original; in TEST_F() local 47 EXPECT_FALSE(cryptographer_.Encrypt(original, &encrypted)); in TEST_F() 67 sync_pb::PasswordSpecificsData original; in TEST_F() local 68 original.set_origin("http://example.com"); in TEST_F() 69 original.set_username_value("azure"); in TEST_F() 70 original.set_password_value("hunter2"); in TEST_F() 73 EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted)); in TEST_F() 78 EXPECT_EQ(original.SerializeAsString(), decrypted.SerializeAsString()); in TEST_F() 86 sync_pb::PasswordSpecificsData original; in TEST_F() local 87 original.set_origin("http://example.com"); in TEST_F() [all …]
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
D | fixjsstyle_test.py | 77 original = [ 97 self._AssertFixes(original, expected) 101 original = [ 121 self._AssertFixes(original, expected) 125 original = [ 143 self._AssertFixes(original, expected) 147 original = [ 165 self._AssertFixes(original, expected) 169 original = [ 181 self._AssertFixes(original, expected) [all …]
|
/external/stlport/test/eh/ |
D | test_insert.h | 74 size_t CountUniqueItems_Aux( const C& original, const Iter& firstNew, in CountUniqueItems_Aux() argument 76 size_t CountUniqueItems_Aux( const C& original, Iter firstNew, in CountUniqueItems_Aux() 101 if ( const_iter(original.find( *tmp )) == const_iter(original.end()) ) in CountUniqueItems_Aux() 126 size_t CountUniqueItems( const C& original, const Iter& firstNew, in CountUniqueItems() argument 130 return CountUniqueItems_Aux( original, firstNew, lastNew, in CountUniqueItems() 135 size_t CountUniqueItems( const C& original, const Iter& firstNew, in CountUniqueItems() argument 139 return CountUniqueItems_Aux( original, firstNew, lastNew, in CountUniqueItems() 143 return CountUniqueItems_Aux( original, firstNew, lastNew, in CountUniqueItems() 149 size_t CountNewItems( const C& original, const Iter& firstNew, in CountNewItems() argument 152 return CountUniqueItems( original, firstNew, lastNew, in CountNewItems() [all …]
|
D | test_push_back.h | 32 test_push_back( const C& orig ) : original( orig ) in test_push_back() 43 EH_ASSERT( c.size() == original.size() + 1 ); in operator() 44 EH_ASSERT( EH_STD::equal( original.begin(), original.end(), c.begin() ) ); in operator() 47 const C& original;
|
D | test_push_front.h | 29 test_push_front( const C& orig ) : original( orig ) { in test_push_front() 37 EH_ASSERT( c.size() == original.size() + 1 ); in operator() 40 EH_ASSERT( EH_STD::equal( original.begin(), original.end(), ++next ) ); in operator() 43 const C& original;
|
/external/chromium_org/tools/grit/grit/gather/ |
D | policy_json_unittest.py | 21 def GetExpectedOutput(self, original): argument 22 expected = eval(original) 28 original = "{'policy_definitions': [], 'messages': {}}" 29 gatherer = policy_json.PolicyJson(StringIO.StringIO(original)) 32 self.failUnless(eval(original) == eval(gatherer.Translate('en'))) 35 original = ( 56 gatherer = policy_json.PolicyJson(StringIO.StringIO(original)) 59 expected = self.GetExpectedOutput(original) 63 original = ( 78 gatherer = policy_json.PolicyJson(StringIO.StringIO(original)) [all …]
|
D | muppet_strings_unittest.py | 20 … original = '''<strings><BLA desc="Says hello">hello!</BLA><BINGO>YEEEESSS!!!</BINGO></strings>''' 21 gatherer = muppet_strings.MuppetStrings(StringIO.StringIO(original)) 24 self.failUnless(gatherer.Translate('en').replace('\n', '') == original) 27 original = ('''\ 35 gatherer = muppet_strings.MuppetStrings(StringIO.StringIO(original)) 47 …original = "<strings><MESSAGE translateable='True'>Hello [![USER]!] how are you? [![HOUR]!]:[![MIN… 48 gatherer = muppet_strings.MuppetStrings(StringIO.StringIO(original)) 58 original = "<strings><BINGO translateable='false'>Yo yo hi there</BINGO></strings>" 59 gatherer = muppet_strings.MuppetStrings(StringIO.StringIO(original))
|
/external/chromium_org/ui/gfx/codec/ |
D | jpeg_codec_unittest.cc | 105 std::vector<unsigned char> original; in TEST() local 106 MakeRGBImage(w, h, &original); in TEST() 110 EXPECT_TRUE(JPEGCodec::Encode(&original[0], JPEGCodec::FORMAT_RGB, w, h, in TEST() 112 EXPECT_GT(original.size(), encoded.size()); in TEST() 122 ASSERT_EQ(original.size(), decoded.size()); in TEST() 126 ASSERT_GE(jpeg_equality_threshold, AveragePixelDelta(original, decoded)); in TEST() 134 std::vector<unsigned char> original; in TEST() local 135 original.resize(w * h * 4); in TEST() 138 unsigned char* org_px = &original[(y * w + x) * 4]; in TEST() 148 EXPECT_TRUE(JPEGCodec::Encode(&original[0], JPEGCodec::FORMAT_RGBA, w, h, in TEST() [all …]
|
D | png_codec_unittest.cc | 279 std::vector<unsigned char> original; in TEST() local 280 MakeRGBImage(w, h, &original); in TEST() 284 ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_RGB, in TEST() 297 ASSERT_EQ(original.size(), decoded.size()); in TEST() 300 ASSERT_TRUE(original == decoded); in TEST() 308 std::vector<unsigned char> original; in TEST() local 309 MakeRGBAImage(w, h, true, &original); in TEST() 313 ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_RGBA, in TEST() 326 ASSERT_EQ(original.size(), decoded.size()); in TEST() 329 ASSERT_TRUE(original == decoded); in TEST() [all …]
|
/external/chromium_org/net/socket_stream/ |
D | socket_stream_metrics_unittest.cc | 27 scoped_ptr<HistogramSamples> original; in TEST() local 31 original = histogram->SnapshotSamples(); in TEST() 47 if (original.get()) { in TEST() 48 samples->Subtract(*original); // Cancel the original values. in TEST() 58 scoped_ptr<HistogramSamples> original; in TEST() local 62 original = histogram->SnapshotSamples(); in TEST() 82 if (original.get()) { in TEST() 83 samples->Subtract(*original); // Cancel the original values. in TEST() 93 scoped_ptr<HistogramSamples> original; in TEST() local 97 original = histogram->SnapshotSamples(); in TEST() [all …]
|
/external/glide/library/tests/src/com/bumptech/glide/load/engine/bitmap_recycle/ |
D | SizeStrategyTest.java | 26 Bitmap original = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888); in testICanAddAndGetABitmapOfDifferentConfigsButSameSize() local 27 strategy.put(original); in testICanAddAndGetABitmapOfDifferentConfigsButSameSize() 28 assertEquals(original, strategy.get(800, 400, Bitmap.Config.RGB_565)); in testICanAddAndGetABitmapOfDifferentConfigsButSameSize() 32 Bitmap original = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888); in testICanAddAndGetABitmapOfDifferentDimensionsButSameSize() local 33 strategy.put(original); in testICanAddAndGetABitmapOfDifferentDimensionsButSameSize() 34 assertEquals(original, strategy.get(200, 800, Bitmap.Config.ARGB_8888)); in testICanAddAndGetABitmapOfDifferentDimensionsButSameSize() 38 Bitmap original = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888); in testICanGetABitmapUpToFourTimesLarger() local 39 strategy.put(original); in testICanGetABitmapUpToFourTimesLarger() 40 assertEquals(original, strategy.get(200, 200, Bitmap.Config.ARGB_8888)); in testICanGetABitmapUpToFourTimesLarger() 44 Bitmap original = Bitmap.createBitmap(401, 401, Bitmap.Config.ARGB_8888); in testICantGetABitmapMoreThanFourTimesLarger() local [all …]
|
/external/chromium_org/components/data_reduction_proxy/browser/ |
D | data_reduction_proxy_metrics_unittest.cc | 287 int64 original[] = {kOriginalLength}; in TEST_F() local 295 original, 1, received, 1, in TEST_F() 296 original, 1, received, 1, in TEST_F() 297 original, 1, received, 1); in TEST_F() 303 int64 original[] = {kOriginalLength}; in TEST_F() local 310 original, 1, received, 1, in TEST_F() 317 original[0] += kOriginalLength; in TEST_F() 322 original, 1, received, 1, in TEST_F() 330 original[0] += kOriginalLength; in TEST_F() 337 original, 1, received, 1, in TEST_F() [all …]
|
/external/deqp/framework/referencerenderer/ |
D | rrMultisamplePixelBufferAccess.cpp | 53 …ccess MultisamplePixelBufferAccess::fromSinglesampleAccess (const tcu::PixelBufferAccess& original) in fromSinglesampleAccess() argument 57 original.getFormat(), in fromSinglesampleAccess() 59 original.getWidth(), in fromSinglesampleAccess() 60 original.getHeight(), in fromSinglesampleAccess() 61 original.getFormat().getPixelSize(), in fromSinglesampleAccess() 62 original.getRowPitch(), in fromSinglesampleAccess() 63 original.getDataPtr())); in fromSinglesampleAccess() 99 …isampleConstPixelBufferAccess::fromSinglesampleAccess (const tcu::ConstPixelBufferAccess& original) in fromSinglesampleAccess() argument 103 original.getFormat(), in fromSinglesampleAccess() 105 original.getWidth(), in fromSinglesampleAccess() [all …]
|
/external/sfntly/cpp/src/test/ |
D | serialization_test.h | 24 bool VerifyHHEA(Table* original, Table* target); 25 bool VerifyGLYF(Table* original, Table* target); 26 bool VerifyHMTX(Table* original, Table* target); 27 bool VerifyLOCA(Table* original, Table* target); 28 bool VerifyMAXP(Table* original, Table* target); 29 bool VerifyNAME(Table* original, Table* target); 30 bool VerifyOS_2(Table* original, Table* target);
|
/external/chromium_org/third_party/sfntly/cpp/src/test/ |
D | serialization_test.h | 24 bool VerifyHHEA(Table* original, Table* target); 25 bool VerifyGLYF(Table* original, Table* target); 26 bool VerifyHMTX(Table* original, Table* target); 27 bool VerifyLOCA(Table* original, Table* target); 28 bool VerifyMAXP(Table* original, Table* target); 29 bool VerifyNAME(Table* original, Table* target); 30 bool VerifyOS_2(Table* original, Table* target);
|
/external/chromium_org/chrome/browser/extensions/api/dial/ |
D | dial_device_data_unittest.cc | 42 DialDeviceData original; in TEST() local 43 original.set_device_id("device_a"); in TEST() 44 original.set_label("label_a"); in TEST() 45 original.set_device_description_url(GURL("http://127.0.0.1/dd-a.xml")); in TEST() 46 original.set_response_time(base::Time::FromInternalValue(1000)); in TEST() 47 original.set_max_age(100); in TEST() 48 original.set_config_id(1); in TEST() 57 DialDeviceData original_1(original); in TEST() 59 ExpectEqual(original_1, original); in TEST() 61 DialDeviceData original_2(original); in TEST() [all …]
|
/external/llvm/lib/Support/ |
D | Atomic.cpp | 100 sys::cas_flag original, result; in AtomicMul() local 102 original = *ptr; in AtomicMul() 103 result = original * val; in AtomicMul() 104 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicMul() 110 sys::cas_flag original, result; in AtomicDiv() local 112 original = *ptr; in AtomicDiv() 113 result = original / val; in AtomicDiv() 114 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicDiv()
|
/external/okhttp/okio/src/test/java/okio/ |
D | DeflaterSinkTest.java | 33 String original = "They're moving in herds. They do move in herds."; in deflateWithClose() local 34 data.writeUtf8(original); in deflateWithClose() 40 assertEquals(original, inflated.readUtf8(inflated.size())); in deflateWithClose() 44 String original = "Yes, yes, yes. That's why we're taking extreme precautions."; in deflateWithSyncFlush() local 46 data.writeUtf8(original); in deflateWithSyncFlush() 52 assertEquals(original, inflated.readUtf8(inflated.size())); in deflateWithSyncFlush() 56 String original = repeat('a', 1024 * 1024); in deflateWellCompressed() local 58 data.writeUtf8(original); in deflateWellCompressed() 64 assertEquals(original, inflated.readUtf8(inflated.size())); in deflateWellCompressed() 68 ByteString original = randomBytes(1024 * 1024); in deflatePoorlyCompressed() local [all …]
|
/external/chromium_org/tools/git/ |
D | mffr.py | 32 def MultiFileFindReplace(original, replacement, file_globs): argument 53 posix_ere_original = re.sub(r"\\s", "[[:space:]]", original) 66 contents = re.sub(original, replacement, original_contents) 149 original = args[0] 151 search_replace_tasks.append([original, replacement, global_file_globs]) 160 for (original, replacement, file_globs) in search_replace_tasks: 162 print 'Original: %s' % original 164 MultiFileFindReplace(original, replacement, file_globs)
|
/external/deqp/modules/glshared/ |
D | glsFragmentOpUtil.cpp | 277 tcu::PixelBufferAccess getMultisampleAccess(const tcu::PixelBufferAccess& original) in getMultisampleAccess() argument 279 return tcu::PixelBufferAccess(original.getFormat(), in getMultisampleAccess() 281 original.getWidth(), in getMultisampleAccess() 282 original.getHeight(), in getMultisampleAccess() 283 original.getFormat().getPixelSize(), in getMultisampleAccess() 284 original.getRowPitch(), in getMultisampleAccess() 285 original.getDataPtr()); in getMultisampleAccess() 288 tcu::ConstPixelBufferAccess getMultisampleAccess(const tcu::ConstPixelBufferAccess& original) in getMultisampleAccess() argument 290 return tcu::ConstPixelBufferAccess(original.getFormat(), in getMultisampleAccess() 292 original.getWidth(), in getMultisampleAccess() [all …]
|