/external/guava/guava-tests/test/com/google/common/collect/ |
D | BenchmarkHelpers.java | 42 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 43 return new HashSet<E>(contents); in create() 47 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 48 return new LinkedHashSet<E>(contents); in create() 52 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 53 return new TreeSet<E>(contents); in create() 57 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 58 return Collections.unmodifiableSet(new HashSet<E>(contents)); in create() 62 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 63 return Collections.synchronizedSet(new HashSet<E>(contents)); in create() [all …]
|
D | FilteredCollectionsTest.java | 70 abstract C createUnfiltered(Iterable<Integer> contents); in createUnfiltered() argument 75 for (List<Integer> contents : SAMPLE_INPUTS) { in testIterationOrderPreserved() 76 C unfiltered = createUnfiltered(contents); in testIterationOrderPreserved() 95 for (List<Integer> contents : SAMPLE_INPUTS) { in testReadsThroughAdd() 96 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd() 100 List<Integer> target = Lists.newArrayList(contents); in testReadsThroughAdd() 109 for (List<Integer> contents : SAMPLE_INPUTS) { in testAdd() 111 boolean expectedResult = createUnfiltered(contents).add(toAdd); in testAdd() 113 C filtered = filter(createUnfiltered(contents), EVEN); in testAdd() 125 for (List<Integer> contents : SAMPLE_INPUTS) { in testRemove() [all …]
|
/external/google-breakpad/src/common/ |
D | test_assembler_unittest.cc | 734 string contents; member in SectionFixture 767 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F() 768 ASSERT_EQ(sizeof(data), contents.size()); in TEST_F() 769 EXPECT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F() 775 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F() 776 ASSERT_EQ(2 * sizeof(data), contents.size()); in TEST_F() 777 ASSERT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F() 778 ASSERT_TRUE(0 == memcmp(contents.data() + sizeof(data), in TEST_F() 787 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F() 788 ASSERT_STREQ(contents.c_str(), "howdy there"); in TEST_F() [all …]
|
/external/google-breakpad/src/processor/ |
D | synth_minidump_unittest.cc | 63 string contents; in TEST() local 64 ASSERT_TRUE(section.GetContents(&contents)); in TEST() 65 EXPECT_EQ(string("\x78\x56\x34\x12", 4), contents); in TEST() 75 string contents; in TEST() local 76 ASSERT_TRUE(section1.GetContents(&contents)); in TEST() 78 EXPECT_EQ(expected, contents); in TEST() 85 stream.Append("stream contents"); in TEST() 86 section.Append("section contents"); in TEST() 89 string contents; in TEST() local 90 ASSERT_TRUE(section.GetContents(&contents)); in TEST() [all …]
|
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 33 private static final CONTENTS = "abc 123 %^& xxx" 41 entry = new FileEntry(PATH, CONTENTS) 42 verifyContents(CONTENTS) 46 * Test setting the contents of a FileEntry by setting a String 49 entry.setContents(CONTENTS) 50 verifyContents(CONTENTS) 54 * Test setting the contents of a FileEntry by setting a byte[] 57 byte[] contents = CONTENTS.getBytes() 58 entry.setContents(contents) 60 contents[1] = (byte)'#' [all …]
|
/external/clang/unittests/libclang/ |
D | LibclangTest.cpp | 42 const char *Contents; member 45 TestVFO(const char *Contents) : Contents(Contents) { in TestVFO() 60 if (Contents) { in ~TestVFO() 65 EXPECT_STREQ(Contents, BufStr.c_str()); in ~TestVFO() 74 const char *contents = in TEST() local 81 " 'contents': [\n" in TEST() 85 " 'external-contents': \"/real/foo.h\"\n" in TEST() 91 TestVFO T(contents); in TEST() 96 const char *contents = in TEST() local 103 " 'contents': [\n" in TEST() [all …]
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 32 private static final CONTENTS = "abc 123 %^& xxx" 37 entry = new FileEntry(PATH, CONTENTS) 38 verifyContents(CONTENTS) 42 entry.setContents(CONTENTS) 43 verifyContents(CONTENTS) 47 byte[] contents = CONTENTS.getBytes() 48 entry.setContents(contents) 50 contents[1] = (byte) '#' 51 verifyContents(CONTENTS) 55 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 54 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 54 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 54 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 32 private static final CONTENTS = "abc 123 %^& xxx" 37 entry = new FileEntry(PATH, CONTENTS) 38 verifyContents(CONTENTS) 42 entry.setContents(CONTENTS) 43 verifyContents(CONTENTS) 47 byte[] contents = CONTENTS.getBytes() 48 entry.setContents(contents) 50 contents[1] = (byte) '#' 51 verifyContents(CONTENTS) 55 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 54 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 54 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 32 private static final CONTENTS = "abc 123 %^& xxx" 37 entry = new FileEntry(PATH, CONTENTS) 38 verifyContents(CONTENTS) 42 entry.setContents(CONTENTS) 43 verifyContents(CONTENTS) 47 byte[] contents = CONTENTS.getBytes() 48 entry.setContents(contents) 50 contents[1] = (byte) '#' 51 verifyContents(CONTENTS) 55 byte[] contents = [65, -99, 91, -115] as byte[] [all …]
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 66 out.write(CONTENTS.getBytes()) [all …]
|
/external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 66 out.write(CONTENTS.getBytes()) [all …]
|
/external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 32 private static final CONTENTS = "abc 123 %^& xxx" 37 entry = new FileEntry(PATH, CONTENTS) 38 verifyContents(CONTENTS) 42 entry.setContents(CONTENTS) 43 verifyContents(CONTENTS) 47 byte[] contents = CONTENTS.getBytes() 48 entry.setContents(contents) 50 contents[1] = (byte) '#' 51 verifyContents(CONTENTS) 67 out.write(CONTENTS.getBytes()) [all …]
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 31 private static final CONTENTS = "abc 123 %^& xxx" 36 entry = new FileEntry(PATH, CONTENTS) 37 verifyContents(CONTENTS) 41 entry.setContents(CONTENTS) 42 verifyContents(CONTENTS) 46 byte[] contents = CONTENTS.getBytes() 47 entry.setContents(contents) 49 contents[1] = (byte) '#' 50 verifyContents(CONTENTS) 66 out.write(CONTENTS.getBytes()) [all …]
|
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntry.groovy | 53 * Construct a new instance with the specified path and file contents 55 * @param contents - the contents of the file, as a String 57 FileEntry(String path, String contents) { 59 setContents(contents) 79 * Set the contents of the file represented by this entry 80 * @param contents - the String whose bytes are used as the contents 82 void setContents(String contents) { 83 assert contents != null 84 setContentsInternal(contents.getBytes()) 88 * Set the contents of the file represented by this entry [all …]
|
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 53 * Construct a new instance with the specified path and file contents 56 * @param contents - the contents of the file, as a String 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 82 * Set the contents of the file represented by this entry 84 * @param contents - the String whose bytes are used as the contents 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 92 * Set the contents of the file represented by this entry 94 * @param contents - the byte[] used as the contents [all …]
|
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 53 * Construct a new instance with the specified path and file contents 56 * @param contents - the contents of the file, as a String 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 82 * Set the contents of the file represented by this entry 84 * @param contents - the String whose bytes are used as the contents 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 92 * Set the contents of the file represented by this entry 94 * @param contents - the byte[] used as the contents [all …]
|
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 53 * Construct a new instance with the specified path and file contents 56 * @param contents - the contents of the file, as a String 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 82 * Set the contents of the file represented by this entry 84 * @param contents - the String whose bytes are used as the contents 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 92 * Set the contents of the file represented by this entry 94 * @param contents - the byte[] used as the contents [all …]
|
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 53 * Construct a new instance with the specified path and file contents 56 * @param contents - the contents of the file, as a String 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 82 * Set the contents of the file represented by this entry 84 * @param contents - the String whose bytes are used as the contents 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 92 * Set the contents of the file represented by this entry 94 * @param contents - the byte[] used as the contents [all …]
|
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 53 * Construct a new instance with the specified path and file contents 56 * @param contents - the contents of the file, as a String 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 82 * Set the contents of the file represented by this entry 84 * @param contents - the String whose bytes are used as the contents 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 92 * Set the contents of the file represented by this entry 94 * @param contents - the byte[] used as the contents [all …]
|
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 53 * Construct a new instance with the specified path and file contents 56 * @param contents - the contents of the file, as a String 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 82 * Set the contents of the file represented by this entry 84 * @param contents - the String whose bytes are used as the contents 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 92 * Set the contents of the file represented by this entry 94 * @param contents - the byte[] used as the contents [all …]
|