/cts/libs/vogar-expect/src/vogar/ |
ExpectationStore.java | 51 * <p>If an outcome matches both an outcome expectation and a failure 52 * expectation, the outcome expectation will be returned. 60 /** The expectation of a general successful run. */ 61 private static final Expectation SUCCESS = new Expectation(Result.SUCCESS, MATCH_ALL_PATTERN, 66 private final Map<String, Expectation> outcomes = new LinkedHashMap<String, Expectation>(); 67 private final Map<String, Expectation> failures = new LinkedHashMap<String, Expectation>(); 107 Expectation expectation = outcomes.get(name); local 244 Expectation expectation = new Expectation(result, pattern, tags, description, buganizerBug); local [all...] |
Expectation.java | 37 public final class Expectation { 39 /** Justification for this expectation */ 57 public Expectation(Result result, Pattern pattern, Set<String> tags, String description, long bug) { 87 * Set the current status of this expectation's bug. When a bug is open, 95 * Returns true if {@code outcome} matches this expectation. 106 return "Expectation[description=" + description + " pattern=" + pattern.pattern() + "]";
|
AnnotatedOutcome.java | 28 * with, if applicable, and the expectation for this test, so that result value information is 38 private final Expectation expectation; field in class:AnnotatedOutcome 47 AnnotatedOutcome(Outcome outcome, Expectation expectation, 53 this.expectation = expectation; 70 return outcome.getResultValue(expectation); 76 previousResultValues.add(previousOutcome.getResultValue(expectation)); 100 return tagOutcome == null ? null : tagOutcome.getResultValue(expectation); [all...] |
Outcome.java | 136 public ResultValue getResultValue(Expectation expectation) { 138 return expectation.matches(this) ? ResultValue.OK : ResultValue.FAIL;
|
/external/vogar/src/vogar/ |
ExpectationStore.java | 45 * <p>If an outcome matches both an outcome expectation and a failure 46 * expectation, the outcome expectation will be returned. 52 private final Map<String, Expectation> outcomes = new LinkedHashMap<String, Expectation>(); 53 private final Map<String, Expectation> failures = new LinkedHashMap<String, Expectation>(); 61 * returns a value for all names, even if no explicit expectation was set. 63 public Expectation get(String name) { 64 Expectation byName = getByNameOrPackage(name) 95 Expectation expectation = outcomes.get(name); local 207 Expectation expectation = local [all...] |
Expectation.java | 38 final class Expectation { 44 /** The expectation of a general successful run. */ 45 static final Expectation SUCCESS = new Expectation(Result.SUCCESS, MATCH_ALL_PATTERN, 48 /** Justification for this expectation */ 66 /** True if the expectation was read from an expectation file */ 69 public Expectation(Result result, 109 * Set the current status of this expectation's bug. When a bug is open, 117 * Returns true if {@code outcome} matches this expectation [all...] |
AnnotatedOutcome.java | 29 * with, if applicable, and the expectation for this test, so that result value information is 39 private final Expectation expectation; field in class:AnnotatedOutcome 44 AnnotatedOutcome(Outcome outcome, Expectation expectation) { 45 this.expectation = expectation; 62 return outcome.getResultValue(expectation); 68 previousResultValues.add(previousOutcome.getResultValue(expectation));
|
XmlReportPrinter.java | 104 Expectation expectation = expectationStore.get(outcome); local 105 if (!expectation.matches(outcome)) { 151 Expectation expectation = expectationStore.get(outcome); local 152 if (!expectation.matches(outcome)) {
|
Outcome.java | 136 public ResultValue getResultValue(Expectation expectation) { 138 if (expectation.matches(this)) { 140 } else if (expectation.getIsFromExpectationFile()) { 141 // If the expectation is created from a file, make this a warning, to
|
Driver.java | 152 Expectation expectation = run.expectationStore.get(action.getName()); local 153 boolean useLargeTimeout = expectation.getTags().contains("large"); 228 Expectation expectation = run.expectationStore.get(outcome); local 229 ResultValue resultValue = outcome.getResultValue(expectation); 243 run.console.printResult(outcome.getName(), result, resultValue, expectation); local
|
OutcomeStore.java | 72 Expectation expectation = expectationStore.get(outcome); local 73 result.put(entry.getKey(), new AnnotatedOutcome(outcome, expectation));
|
Console.java | 157 String outcomeName, Result result, ResultValue resultValue, Expectation expectation) { 160 if (!expectation.getDescription().isEmpty()) { 161 streamOutput(outcomeName, "\n" + colorString(expectation.getDescription(), Color.COMMENT)); 163 if (expectation.getBug() != -1) { 164 streamOutput(outcomeName, "\n" + colorString("http://b/" + expectation.getBug(), Color.COMMENT));
|
/cts/tests/core/runner/src/com/android/cts/core/runner/ |
TestFilter.java | 25 import vogar.Expectation; 92 Expectation expectation = expectationStore.get(testName); local 93 if (expectation.getResult() != Result.SUCCESS) { 95 + " as it matches expectation: " + expectation);
|
/cts/tools/utils/ |
VogarUtils.java | 17 import vogar.Expectation; 55 Expectation expectation = expectationStore.get(fullTestName); local 56 if (expectation.getResult() == Result.SUCCESS) { 60 String description = expectation.getDescription(); 63 return expectation.getResult() != Result.SUCCESS && !foundAbi; 97 * @return The Set of supported abis parsed from the {@code expectation}'s description. 99 public static Set<String> extractSupportedAbis(String architecture, Expectation expectation) { 101 if (expectation == null || expectation.getDescription().isEmpty()) 126 Expectation expectation = expectationStore.get(fullTestName); local [all...] |
DescriptionGenerator.java | 42 import vogar.Expectation; 139 Log.e("Couldn't load expectation store.", e); 577 Expectation expectation = expectationStore.get( local 580 VogarUtils.extractSupportedAbis(architecture, expectation); 581 int timeoutInMinutes = VogarUtils.timeoutInMinutes(expectation);
|
CollectAllTests.java | 25 import vogar.Expectation; 69 + "<java-package> <architecture> [expectation-dir [makefile-file]]"); 178 System.err.println("Can't initialize vogar expectation store from " 449 System.out.println("ignoring expectation known failure: " + test
|
/external/gmock/include/gmock/ |
gmock-spec-builders.h | 45 // A user can use the EXPECT_CALL() macro to specify an expectation on 82 // An abstract handle of an expectation. 83 class Expectation; 85 // A set of expectation handles. 98 // Implements an expectation. 101 // Helper class for testing the Expectation class template. 116 // expectation gets picked. Therefore, we sequence all mock function 169 // Returns the expectation that matches the given function arguments 224 // Returns an Expectation object that references and co-owns exp, 225 // which must be an expectation on this mock function [all...] |
/external/google-breakpad/src/testing/include/gmock/ |
gmock-spec-builders.h | 45 // A user can use the EXPECT_CALL() macro to specify an expectation on 78 // An abstract handle of an expectation. 79 class Expectation; 81 // A set of expectation handles. 94 // Implements an expectation. 97 // Helper class for testing the Expectation class template. 112 // expectation gets picked. Therefore, we sequence all mock function 165 // Returns the expectation that matches the given function arguments 220 // Returns an Expectation object that references and co-owns exp, 221 // which must be an expectation on this mock function [all...] |
/external/google-breakpad/src/testing/test/ |
gmock-spec-builders_test.cc | 51 // Helper class for testing the Expectation class template. 54 // Sets the call count of the given expectation to the given number. 77 using testing::Expectation; 415 Expectation e = EXPECT_CALL(a, DoA(1)) 442 Expectation e = EXPECT_CALL(a, DoA(1)); 601 // expectation compared to its cardinality. 667 // expectation compared to its cardinality. 731 // There is no expectation on DoB(int). 869 // expectation has no action clause at all. 971 "Google Mock tried the following 1 expectation, but it didn't match:") [all...] |
/external/gmock/test/ |
gmock-spec-builders_test.cc | 51 // Helper class for testing the Expectation class template. 54 // Sets the call count of the given expectation to the given number. 77 using testing::Expectation; 415 Expectation e = EXPECT_CALL(a, DoA(1)) 442 Expectation e = EXPECT_CALL(a, DoA(1)); 601 // expectation compared to its cardinality. 667 // expectation compared to its cardinality. 731 // There is no expectation on DoB(int). 869 // expectation has no action clause at all. 972 "Google Mock tried the following 1 expectation, but it didn't match:") [all...] |
/external/gmock/src/ |
gmock-spec-builders.cc | 87 // Explicitly specifies the cardinality of this expectation. Used by 94 // Retires all pre-requisites of this expectation. 98 // We can take this short-cut as we never retire an expectation 113 // Returns true iff all pre-requisites of this expectation have been 127 // Adds unsatisfied pre-requisites of this expectation to 'result'. 149 // expectation has occurred. 160 // Describes the state of the expectation (e.g. is it satisfied? 332 // No expectation is set on this mock method - we have an 407 // In case the action deletes a piece of the expectation, we 422 // No expectation matches this call - reports a failure [all...] |
/external/google-breakpad/src/testing/src/ |
gmock-spec-builders.cc | 87 // Explicitly specifies the cardinality of this expectation. Used by 94 // Retires all pre-requisites of this expectation. 98 // We can take this short-cut as we never retire an expectation 113 // Returns true iff all pre-requisites of this expectation have been 127 // Adds unsatisfied pre-requisites of this expectation to 'result'. 149 // expectation has occurred. 160 // Describes the state of the expectation (e.g. is it satisfied? 332 // No expectation is set on this mock method - we have an 407 // In case the action deletes a piece of the expectation, we 422 // No expectation matches this call - reports a failure [all...] |
/external/v8/test/mjsunit/es6/ |
math-log2-log10.js | 78 // Expectation isn't exactly 1/2 because Math.SQRT2 isn't exactly sqrt(2). 81 // Expectation isn't exactly -1/2 because Math.SQRT1_2 isn't exactly sqrt(1/2).
|
/system/connectivity/shill/ |
daemon_task_unittest.cc | 53 using ::testing::Expectation; 157 Expectation routing_table_started = EXPECT_CALL(routing_table_, Start()); 184 // This expectation verifies that the termination actions are invoked.
|
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/ |
XmlGenerator.java | 19 import vogar.Expectation; 219 writer.append(" expectation=\"failure\""); 255 public static void removeUnsupportedAbis(Expectation expectation, Set<String> supportedAbis) { 256 if (expectation == null) { 260 String description = expectation.getDescription();
|