HomeSort by relevance Sort by last modified time
    Searched refs:expect (Results 276 - 300 of 1498) sorted by null

<<11121314151617181920>>

  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_cgi.py 129 for orig, expect in parse_strict_test_cases:
132 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
134 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
140 if isinstance(expect, dict):
142 self.assertEqual(len(expect), len(fcd))
143 self.assertItemsEqual(expect.keys(), fcd.keys())
144 self.assertItemsEqual(expect.values(), fcd.values())
145 self.assertItemsEqual(expect.items(), fcd.items())
151 for key in expect.keys():
152 expect_val = expect[key
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_cgi.py 129 for orig, expect in parse_strict_test_cases:
132 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
134 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
140 if isinstance(expect, dict):
142 self.assertEqual(len(expect), len(fcd))
143 self.assertItemsEqual(expect.keys(), fcd.keys())
144 self.assertItemsEqual(expect.values(), fcd.values())
145 self.assertItemsEqual(expect.items(), fcd.items())
151 for key in expect.keys():
152 expect_val = expect[key
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_cgi.py 129 for orig, expect in parse_strict_test_cases:
132 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
134 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
140 if isinstance(expect, dict):
142 self.assertEqual(len(expect), len(fcd))
143 self.assertItemsEqual(expect.keys(), fcd.keys())
144 self.assertItemsEqual(expect.values(), fcd.values())
145 self.assertItemsEqual(expect.items(), fcd.items())
151 for key in expect.keys():
152 expect_val = expect[key
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
ConcurrentHashMultisetTest.java 24 import static org.easymock.EasyMock.expect;
110 expect(backingMap.isEmpty()).andReturn(true);
120 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(COUNT));
128 expect(backingMap.get(KEY)).andReturn(null);
138 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(INITIAL_COUNT));
147 expect(backingMap.get(KEY)).andReturn(null);
148 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(null);
160 expect(backingMap.get(KEY)).andReturn(initial);
172 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(INITIAL_COUNT));
195 expect(backingMap.get(KEY)).andReturn(null)
    [all...]
ForwardingMapTest.java 20 import static org.easymock.EasyMock.expect;
256 expect(map.containsKey(anyObject())).andReturn(false).anyTimes();
257 expect(map.get(anyObject())).andReturn(null).anyTimes();
258 expect(map.isEmpty()).andReturn(true).anyTimes();
259 expect(map.remove(anyObject())).andReturn(null).anyTimes();
260 expect(map.size()).andReturn(0).anyTimes();
261 expect(entrySet.iterator())
291 expect(entrySet.iterator()).andReturn(
296 expect(map.containsKey(anyObject())).andReturn(false).anyTimes();
297 expect(map.isEmpty()).andReturn(true).anyTimes()
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
VersionedTfLauncherTest.java 116 EasyMock.expect(
142 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File(""));
143 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2);
144 EasyMock.expect(mMockBuildInfo.getFile("general-tests.zip"))
146 EasyMock.expect(mMockTestDevice.getIDevice()).andReturn(mMockIDevice).times(2);
147 EasyMock.expect(mMockTestDevice.getSerialNumber()).andReturn(FAKE_SERIAL).times(1);
157 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions());
176 EasyMock.expect(
199 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File(""));
200 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2)
    [all...]
NativeBenchmarkTestTest.java 51 EasyMock.expect(mDevice.getSerialNumber()).andStubReturn("SERIAL");
95 EasyMock.expect(mDevice.getFileEntry((String) EasyMock.anyObject())).andReturn(null);
118 EasyMock.expect(mDevice.getFileEntry((String) EasyMock.anyObject())).andReturn(fakeEntry);
119 EasyMock.expect(mDevice.executeShellCommand(EasyMock.eq("cat "
122 EasyMock.expect(mDevice.executeShellCommand(EasyMock.eq("cat "
136 EasyMock.expect(fakeEntry.isDirectory()).andReturn(false);
137 EasyMock.expect(fakeEntry.getName()).andStubReturn(fakeRunName);
138 EasyMock.expect(fakeEntry.getFullEscapedPath()).andReturn(fakeFullPath);
139 EasyMock.expect(mDevice.getFileEntry((String) EasyMock.anyObject())).andReturn(fakeEntry);
140 EasyMock.expect(mDevice.executeShellCommand(EasyMock.eq("chmod 755 " + fakeFullPath))
    [all...]
  /libcore/luni/src/main/java/libcore/reflect/
GenericSignatureParser.java 255 expect('>');
269 expect(':');
305 expect('L');
332 expect(';');
348 expect('>');
380 expect('T');
382 expect(';');
416 expect('(');
420 expect(')');
469 void expect(char c) method in class:GenericSignatureParser
    [all...]
  /packages/apps/Email/tests/src/com/android/email/mail/transport/
MockTransport.java 83 return "Expect the client to close";
85 return "Expect IOException";
87 return "Expect StartTls";
108 public void expect(String pattern) { method in class:MockTransport
109 expect(pattern, (String[]) null); method
117 public void expect(String pattern, String response) { method in class:MockTransport
118 expect(pattern, (response == null) ? null : new String[] {response}); method
126 public void expect(String pattern, String[] responses) { method in class:MockTransport
132 * Same as {@link #expect(String, String[])}, but the first arg is taken literally, rather than
136 expect("^" + Pattern.quote(literal) + "$", responses)
192 Transaction expect = mPairs.remove(0); local
284 Transaction expect = mPairs.remove(0); local
    [all...]
  /prebuilts/go/darwin-x86/test/
stringrange.go 19 expect := []rune{0, 0123, 0, 0xFFFD, 0xFFFD, 0x123, 0xbabe, 0xbabe, 0x10FFFF, 'x'}
31 if r != expect[cnum] {
32 fmt.Printf("unexpected rune %d from DecodeRuneInString: %x not %x\n", i, r, expect[cnum])
35 if c != expect[cnum] {
36 fmt.Printf("unexpected rune %d from range: %x not %x\n", i, r, expect[cnum])
  /prebuilts/go/linux-x86/test/
stringrange.go 19 expect := []rune{0, 0123, 0, 0xFFFD, 0xFFFD, 0x123, 0xbabe, 0xbabe, 0x10FFFF, 'x'}
31 if r != expect[cnum] {
32 fmt.Printf("unexpected rune %d from DecodeRuneInString: %x not %x\n", i, r, expect[cnum])
35 if c != expect[cnum] {
36 fmt.Printf("unexpected rune %d from range: %x not %x\n", i, r, expect[cnum])
  /tools/metalava/src/main/java/com/android/tools/metalava/model/text/
TextTypeParameterList.kt 61 var expect = false
67 expect = balance == 1
78 expect = if (balance == 1) {
84 } else if (expect && balance == 1) {
86 expect = false
  /tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
RunCommandTargetPreparerTest.java 70 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(2);
74 EasyMock.expect(mMockDevice.executeShellV2Command(EasyMock.eq(command))).andReturn(res);
90 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(2);
94 EasyMock.expect(
132 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(1);
133 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.eq(command))).andReturn("");
152 EasyMock.expect(mMockIDevice.getSerialNumber()).andReturn("SERIAL").anyTimes();
156 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice).atLeastOnce();
157 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").atLeastOnce();
160 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(ONLINE_STATE).atLeastOnce()
    [all...]
  /prebuilts/go/darwin-x86/src/go/internal/gccgoimporter/
parser.go 65 func (p *parser) expect(tok rune) string { func
75 lit := p.expect(scanner.Ident)
82 str, err := strconv.Unquote(p.expect(scanner.String))
233 p.expect(':')
234 p.expect(scanner.Int)
235 p.expect('>')
239 p.expect('.')
240 p.expect('.')
260 p.expect('(')
262 p.expect(',')
    [all...]
  /prebuilts/go/linux-x86/src/go/internal/gccgoimporter/
parser.go 65 func (p *parser) expect(tok rune) string { func
75 lit := p.expect(scanner.Ident)
82 str, err := strconv.Unquote(p.expect(scanner.String))
233 p.expect(':')
234 p.expect(scanner.Int)
235 p.expect('>')
239 p.expect('.')
240 p.expect('.')
260 p.expect('(')
262 p.expect(',')
    [all...]
  /external/guice/extensions/servlet/test/com/google/inject/servlet/
ServletDispatchIntegrationTest.java 21 import static org.easymock.EasyMock.expect;
87 expect(requestMock.getRequestURI())
90 expect(requestMock.getContextPath())
134 expect(requestMock.getRequestURI())
137 expect(requestMock.getContextPath())
245 expect(requestMock.getRequestURI())
248 expect(requestMock.getContextPath())
253 expect(requestMock.getAttribute(REQUEST_DISPATCHER_REQUEST)).andReturn(true);
256 expect(responseMock.isCommitted()).andReturn(false);
287 expect(requestMock.getRequestURI()
    [all...]
  /external/python/cpython3/Lib/test/
test_urllib.py 794 expect = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="")
795 self.assertEqual(expect, result,
797 (expect, result))
800 expect = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="")
801 self.assertEqual(expect, result,
803 (expect, result))
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/device/
MockDeviceManager.java 67 EasyMock.expect(mockDevice.getSerialNumber()).andReturn("serial" + i).anyTimes();
69 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes();
70 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes();
71 EasyMock.expect(mockDevice.getDeviceState()).andReturn(
73 EasyMock.expect(mockDevice.waitForDeviceShell(EasyMock.anyLong()))
88 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes();
109 EasyMock.expect(mockDevice.getSerialNumber()).andReturn("serial" + i).anyTimes();
111 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes();
112 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes();
113 EasyMock.expect(mockDevice.getDeviceState()).andReturn
    [all...]
NativeDeviceTest.java 113 EasyMock.expect(mMockIDevice.getSerialNumber()).andReturn(MOCK_DEVICE_SERIAL).anyTimes();
308 EasyMock.expect(fakeEntry.getChildren(false)).andReturn(childrens);
365 EasyMock.expect(fakeFile.isDirectory()).andReturn(false);
366 EasyMock.expect(fakeFile.getName()).andReturn("fakeFile");
367 EasyMock.expect(fakeFile.getFullPath()).andReturn("/sdcard/screenshots/fakeFile");
370 EasyMock.expect(fakeDir.isDirectory()).andReturn(true);
371 EasyMock.expect(fakeDir.getName()).andReturn("fakeDir");
372 EasyMock.expect(fakeDir.getFullPath()).andReturn("/sdcard/screenshots/fakeDir");
375 EasyMock.expect(fakeDir.getChildren(false)).andReturn(fakeDirChildren);
376 EasyMock.expect(fakeEntry.getChildren(false)).andReturn(children)
    [all...]
  /external/icu/icu4c/source/test/intltest/
testutil.cpp 179 const EditChange &expect = expected[expIndex]; local
181 if (withUnchanged || expect.change) {
183 test.assertEquals(msg + u":" + __LINE__, expect.change, ei1.hasChange());
184 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei1.oldLength());
185 test.assertEquals(msg + u":" + __LINE__, expect.newLength, ei1.newLength());
191 if (expect.oldLength > 0) {
193 test.assertEquals(msg + u":" + __LINE__, expect.change, ei2.hasChange());
194 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei2.oldLength());
195 test.assertEquals(msg + u":" + __LINE__, expect.newLength, ei2.newLength());
207 if (expect.newLength > 0)
    [all...]
  /external/rappor/client/javatest/com/google/android/rappor/
EncoderTest.java 93 thrown.expect(IllegalArgumentException.class);
120 thrown.expect(IllegalArgumentException.class);
133 thrown.expect(IllegalArgumentException.class);
147 thrown.expect(IllegalArgumentException.class);
160 thrown.expect(IllegalArgumentException.class);
173 thrown.expect(IllegalArgumentException.class);
186 thrown.expect(IllegalArgumentException.class);
199 thrown.expect(IllegalArgumentException.class);
212 thrown.expect(IllegalArgumentException.class);
225 thrown.expect(IllegalArgumentException.class)
    [all...]
  /external/valgrind/memcheck/tests/
err_disable3.stderr.exp 2 --------- p: disabling errors (expect 0) ---------
8 --------- c: start (expect 1) ---------
29 --------- p: re_enabled (expect 1) ---------
  /libcore/ojluni/src/main/java/java/util/concurrent/atomic/
AtomicIntegerArray.java 159 * @param expect the expected value
164 public final boolean compareAndSet(int i, int expect, int update) {
165 return compareAndSetRaw(checkedByteOffset(i), expect, update);
168 private boolean compareAndSetRaw(long offset, int expect, int update) {
169 return U.compareAndSwapInt(array, offset, expect, update);
181 * @param expect the expected value
185 public final boolean weakCompareAndSet(int i, int expect, int update) {
186 return compareAndSet(i, expect, update);
AtomicLongArray.java 158 * @param expect the expected value
163 public final boolean compareAndSet(int i, long expect, long update) {
164 return compareAndSetRaw(checkedByteOffset(i), expect, update);
167 private boolean compareAndSetRaw(long offset, long expect, long update) {
168 return U.compareAndSwapLong(array, offset, expect, update);
180 * @param expect the expected value
184 public final boolean weakCompareAndSet(int i, long expect, long update) {
185 return compareAndSet(i, expect, update);
  /prebuilts/go/darwin-x86/misc/android/
cleaner.go 18 expect := make(map[string]bool)
20 expect[filepath.Join(goroot, f)] = true
24 if expect[path] {

Completed in 866 milliseconds

<<11121314151617181920>>