Home
last modified time | relevance | path

Searched refs:Expectation (Results 1 – 25 of 43) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DCopyCommandsValidationTests.cpp81 void ValidateExpectation(wgpu::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation()
82 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
89 void TestB2TCopy(utils::Expectation expectation, in TestB2TCopy()
110 void TestT2BCopy(utils::Expectation expectation, in TestT2BCopy()
131 void TestT2TCopy(utils::Expectation expectation, in TestT2TCopy()
151 void TestBothTBCopies(utils::Expectation expectation, in TestBothTBCopies()
166 void TestBothT2TCopies(utils::Expectation expectation, in TestBothT2TCopies()
189 TestBothTBCopies(utils::Expectation::Success, source, 0, bufferBytesPerRow, rowsPerImage, in TestBothTBCopiesExactBufferSize()
196 TestBothTBCopies(utils::Expectation::Failure, invalidSource, 0, bufferBytesPerRow, in TestBothTBCopiesExactBufferSize()
438 TestB2TCopy(utils::Expectation::Success, source, 0, 256, 4, destination, 0, {0, 0, 0}, in TEST_F()
[all …]
DDrawIndirectValidationTests.cpp47 void ValidateExpectation(wgpu::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation()
48 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
55 void TestIndirectOffsetDrawIndexed(utils::Expectation expectation, in TestIndirectOffsetDrawIndexed()
61 void TestIndirectOffsetDraw(utils::Expectation expectation, in TestIndirectOffsetDraw()
67 void TestIndirectOffset(utils::Expectation expectation, in TestIndirectOffset()
99 TestIndirectOffsetDraw(utils::Expectation::Success, {1, 2, 3, 4}, 0); in TEST_F()
101 TestIndirectOffsetDraw(utils::Expectation::Success, {1, 2, 3, 4, 5, 6, 7}, 0); in TEST_F()
103 TestIndirectOffsetDraw(utils::Expectation::Success, {1, 2, 3, 4, 5, 6, 7, 8}, in TEST_F()
107 TestIndirectOffsetDraw(utils::Expectation::Failure, {1, 2, 3, 4, 5}, 1); in TEST_F()
108 TestIndirectOffsetDraw(utils::Expectation::Failure, {1, 2, 3, 4, 5}, 2); in TEST_F()
[all …]
DCopyTextureForBrowserTests.cpp45 void TestCopyTextureForBrowser(utils::Expectation expectation, in TestCopyTextureForBrowser()
60 if (expectation == utils::Expectation::Success) { in TestCopyTextureForBrowser()
82 TestCopyTextureForBrowser(utils::Expectation::Success, source, 0, {0, 0, 0}, destination, 0, in TEST_F()
86 TestCopyTextureForBrowser(utils::Expectation::Success, source, 0, {0, 0, 0}, destination, 0, in TEST_F()
90 TestCopyTextureForBrowser(utils::Expectation::Success, source, 0, {8, 8, 0}, destination, 0, in TEST_F()
94 TestCopyTextureForBrowser(utils::Expectation::Success, source, 0, {0, 0, 0}, destination, 2, in TEST_F()
98 TestCopyTextureForBrowser(utils::Expectation::Success, source, 2, {0, 0, 0}, destination, 0, in TEST_F()
102 TestCopyTextureForBrowser(utils::Expectation::Success, source, 0, {0, 0, 0}, destination, 0, in TEST_F()
109 TestCopyTextureForBrowser(utils::Expectation::Success, source, 0, {0, 0, 0}, destination, 0, in TEST_F()
113 TestCopyTextureForBrowser(utils::Expectation::Success, source, 0, {0, 0, 0}, destination, 0, in TEST_F()
[all …]
DComputeIndirectValidationTests.cpp39 void ValidateExpectation(wgpu::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation()
40 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
47 void TestIndirectOffset(utils::Expectation expectation, in TestIndirectOffset()
69 TestIndirectOffset(utils::Expectation::Success, {1, 2, 3}, 0); in TEST_F()
71 TestIndirectOffset(utils::Expectation::Success, {1, 2, 3, 4, 5, 6}, 0); in TEST_F()
73 TestIndirectOffset(utils::Expectation::Success, {1, 2, 3, 4, 5, 6}, 3 * sizeof(uint32_t)); in TEST_F()
76 TestIndirectOffset(utils::Expectation::Failure, {1, 2, 3, 4}, 1); in TEST_F()
77 TestIndirectOffset(utils::Expectation::Failure, {1, 2, 3, 4}, 2); in TEST_F()
80 TestIndirectOffset(utils::Expectation::Failure, {1, 2}, 0); in TEST_F()
82 TestIndirectOffset(utils::Expectation::Failure, {1, 2, 3}, 1 * sizeof(uint32_t)); in TEST_F()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/validation/
DCopyCommandsValidationTests.cpp75 void ValidateExpectation(dawn::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation()
76 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
83 void TestB2TCopy(utils::Expectation expectation, in TestB2TCopy()
104 void TestT2BCopy(utils::Expectation expectation, in TestT2BCopy()
125 void TestT2TCopy(utils::Expectation expectation, in TestT2TCopy()
281 TestB2TCopy(utils::Expectation::Success, source, 0, 256, 0, destination, 0, 0, {0, 0, 0}, in TEST_F()
284 TestB2TCopy(utils::Expectation::Success, source, 0, 256, 0, destination, 0, 0, {12, 12, 0}, in TEST_F()
287 TestB2TCopy(utils::Expectation::Success, source, 0, 256, 0, destination, 2, 0, {0, 0, 0}, in TEST_F()
290 TestB2TCopy(utils::Expectation::Success, source, bufferSize - 4, 256, 0, destination, 0, 0, in TEST_F()
297 TestB2TCopy(utils::Expectation::Success, source, 0, 256, 0, destination, 0, 0, {0, 0, 0}, in TEST_F()
[all …]
DDrawIndirectValidationTests.cpp52 void ValidateExpectation(dawn::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation()
53 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
60 void TestIndirectOffsetDrawIndexed(utils::Expectation expectation, in TestIndirectOffsetDrawIndexed()
66 void TestIndirectOffsetDraw(utils::Expectation expectation, in TestIndirectOffsetDraw()
72 void TestIndirectOffset(utils::Expectation expectation, in TestIndirectOffset()
103 TestIndirectOffsetDraw(utils::Expectation::Success, {1, 2, 3, 4}, 0); in TEST_F()
105 TestIndirectOffsetDraw(utils::Expectation::Success, {1, 2, 3, 4, 5, 6, 7}, 0); in TEST_F()
107 TestIndirectOffsetDraw(utils::Expectation::Success, {1, 2, 3, 4, 5, 6, 7, 8}, in TEST_F()
111 TestIndirectOffsetDraw(utils::Expectation::Failure, {1, 2, 3}, 0); in TEST_F()
113 TestIndirectOffsetDraw(utils::Expectation::Failure, {1, 2, 3, 4}, 1 * sizeof(uint32_t)); in TEST_F()
[all …]
DComputeIndirectValidationTests.cpp46 void ValidateExpectation(dawn::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation()
47 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
54 void TestIndirectOffset(utils::Expectation expectation, in TestIndirectOffset()
75 TestIndirectOffset(utils::Expectation::Success, {1, 2, 3}, 0); in TEST_F()
77 TestIndirectOffset(utils::Expectation::Success, {1, 2, 3, 4, 5, 6}, 0); in TEST_F()
79 TestIndirectOffset(utils::Expectation::Success, {1, 2, 3, 4, 5, 6}, 3 * sizeof(uint32_t)); in TEST_F()
82 TestIndirectOffset(utils::Expectation::Failure, {1, 2}, 0); in TEST_F()
84 TestIndirectOffset(utils::Expectation::Failure, {1, 2, 3}, 1 * sizeof(uint32_t)); in TEST_F()
86 TestIndirectOffset(utils::Expectation::Failure, {1, 2, 3}, 4 * sizeof(uint32_t)); in TEST_F()
89 TestIndirectOffset(utils::Expectation::Failure, {1, 2, 3, 4, 5, 6}, offset); in TEST_F()
/third_party/skia/tools/skpbench/
D_hardware_pixel_c.py6 from _hardware import HardwareException, Expectation
76 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
77 Expectation(str, exact_value='0-2', name='online cpus'),
78 Expectation(int, max_value=40000, name='skin temperature'),
79 Expectation(int, max_value=86000, name='cpu temperature'),
80 Expectation(int, max_value=87000, name='gpu temperature'),
81 Expectation(int, exact_value=0, name='cpu throttle'),
82 Expectation(int, exact_value=0, name='gpu throttle')] + \
83 [Expectation(int, exact_value=CPU_CLOCK_RATE,
86 [Expectation(str, exact_value=GPU_EMC_PROFILE, name='gpu/emc profile')]
[all …]
D_hardware_pixel2.py6 from _hardware import Expectation
108 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
109 Expectation(str, exact_value='4-6', name='online cpus')] + \
110 [Expectation(int, exact_value=CPU_CLOCK_RATE, name='cpu_%i clock rate' %i)
112 [Expectation(long, min_value=902390000, max_value=902409999,
114 Expectation(int, max_value=750, name='gpu temperature'),
115 Expectation(int, exact_value=1, name='gpu throttling'),
116 Expectation(int, max_value=75, name='msm_therm temperature'),
117 Expectation(int, max_value=75000, name='pm8998_tz temperature')]
119 Expectation.check_all(expectations, result.splitlines())
D_hardware_nexus_6p.py6 from _hardware import HardwareException, Expectation
81 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
82 Expectation(str, exact_value='4-6', name='online cpus'),
83 Expectation(int, max_value=88, name='tsens_tz_sensor13'),
84 Expectation(int, max_value=88, name='tsens_tz_sensor14'),
85 Expectation(long, min_value=(GPU_CLOCK_RATE - 5000),
87 Expectation(long, min_value=647995000, max_value=648007500,
89 [Expectation(int, exact_value=CPU_CLOCK_RATE, name='cpu_%i clock rate' %i)
92 Expectation.check_all(expectations, result.splitlines())
D_hardware_pixel.py6 from _hardware import Expectation
81 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
82 Expectation(str, exact_value='2-3', name='online cpus')] + \
83 [Expectation(int, exact_value=CPU_CLOCK_RATE, name='cpu_%i clock rate' %i)
85 [Expectation(long, min_value=902390000, max_value=902409999,
87 Expectation(int, max_value=41000, name='pm8994_tz temperature'),
88 Expectation(int, max_value=40, name='msm_therm temperature')]
90 Expectation.check_all(expectations, result.splitlines())
/third_party/flutter/skia/tools/skpbench/
D_hardware_pixel_c.py6 from _hardware import HardwareException, Expectation
76 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
77 Expectation(str, exact_value='0-2', name='online cpus'),
78 Expectation(int, max_value=40000, name='skin temperature'),
79 Expectation(int, max_value=86000, name='cpu temperature'),
80 Expectation(int, max_value=87000, name='gpu temperature'),
81 Expectation(int, exact_value=0, name='cpu throttle'),
82 Expectation(int, exact_value=0, name='gpu throttle')] + \
83 [Expectation(int, exact_value=CPU_CLOCK_RATE,
86 [Expectation(str, exact_value=GPU_EMC_PROFILE, name='gpu/emc profile')]
[all …]
D_hardware_pixel2.py6 from _hardware import Expectation
108 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
109 Expectation(str, exact_value='4-6', name='online cpus')] + \
110 [Expectation(int, exact_value=CPU_CLOCK_RATE, name='cpu_%i clock rate' %i)
112 [Expectation(long, min_value=902390000, max_value=902409999,
114 Expectation(int, max_value=750, name='gpu temperature'),
115 Expectation(int, exact_value=1, name='gpu throttling'),
116 Expectation(int, max_value=75, name='msm_therm temperature'),
117 Expectation(int, max_value=75000, name='pm8998_tz temperature')]
119 Expectation.check_all(expectations, result.splitlines())
D_hardware_nexus_6p.py6 from _hardware import HardwareException, Expectation
81 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
82 Expectation(str, exact_value='4-6', name='online cpus'),
83 Expectation(int, max_value=88, name='tsens_tz_sensor13'),
84 Expectation(int, max_value=88, name='tsens_tz_sensor14'),
85 Expectation(long, min_value=(GPU_CLOCK_RATE - 5000),
87 Expectation(long, min_value=647995000, max_value=648007500,
89 [Expectation(int, exact_value=CPU_CLOCK_RATE, name='cpu_%i clock rate' %i)
92 Expectation.check_all(expectations, result.splitlines())
D_hardware_pixel.py6 from _hardware import Expectation
81 [Expectation(int, min_value=30, name='battery', sleeptime=30*60),
82 Expectation(str, exact_value='2-3', name='online cpus')] + \
83 [Expectation(int, exact_value=CPU_CLOCK_RATE, name='cpu_%i clock rate' %i)
85 [Expectation(long, min_value=902390000, max_value=902409999,
87 Expectation(int, max_value=41000, name='pm8994_tz temperature'),
88 Expectation(int, max_value=40, name='msm_therm temperature')]
90 Expectation.check_all(expectations, result.splitlines())
/third_party/googletest/googlemock/include/gmock/
Dgmock-spec-builders.h90 class Expectation; variable
233 Expectation GetHandleOf(ExpectationBase* exp);
504 class GTEST_API_ Expectation {
507 Expectation();
508 Expectation(Expectation&&) = default;
509 Expectation(const Expectation&) = default;
510 Expectation& operator=(Expectation&&) = default;
511 Expectation& operator=(const Expectation&) = default;
512 ~Expectation();
523 Expectation(internal::ExpectationBase& exp); // NOLINT
[all …]
/third_party/googletest/googlemock/test/
Dgmock-spec-builders_test.cc77 using testing::Expectation;
426 Expectation e = EXPECT_CALL(a, DoA(1)) in TEST()
453 Expectation e = EXPECT_CALL(a, DoA(1)); in TEST()
1468 Expectation e1; // Default ctor. in TEST()
1471 Expectation e2 = EXPECT_CALL(a, DoA(2)); in TEST()
1472 Expectation e3 = EXPECT_CALL(a, DoA(3)).With(_); in TEST()
1475 Expectation e4 = EXPECT_CALL(a, DoA(4)).Times(1); in TEST()
1476 Expectation e5 = EXPECT_CALL(a, DoA(5)).InSequence(s); in TEST()
1478 Expectation e6 = EXPECT_CALL(a, DoA(6)).After(e2); in TEST()
1479 Expectation e7 = EXPECT_CALL(a, DoA(7)).WillOnce(Return()); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Dbind_test.cc36 struct Expectation { in TEST_F() struct
51 const Expectation kExpect[] = { in TEST_F()
82 for (const Expectation &e : kExpect) { in TEST_F()
120 struct Expectation { in TEST_F() struct
129 const Expectation kExpect[] = { in TEST_F()
143 for (const Expectation &e : kExpect) { in TEST_F()
Dparser_test.cc32 struct Expectation { in TEST() struct
37 const Expectation kExpect[] = { in TEST()
57 struct Expectation { in TEST() struct
62 const Expectation kExpect[] = { in TEST()
101 struct Expectation { in TEST_F() struct
107 const Expectation kExpect[] = { in TEST_F()
Dconvert_test.cc205 struct Expectation { in TestStringConvert() struct
209 const Expectation kExpect[] = { in TestStringConvert()
221 for (const Expectation &e : kExpect) { in TestStringConvert()
1160 struct Expectation { in TEST_F() struct
1166 std::vector<Expectation> expect = { in TEST_F()
1173 Expectation ex = {__LINE__, StrPrint("%12a", dx), "%12a"}; in TEST_F()
1176 for (const Expectation &e : expect) { in TEST_F()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/
DDawnTest.h94 class Expectation; variable
181 detail::Expectation* expectation);
192 detail::Expectation* expectation);
243 std::unique_ptr<detail::Expectation> expectation;
282 class Expectation {
284 virtual ~Expectation() = default;
292 class ExpectEq : public Expectation {
/third_party/skia/third_party/externals/dawn/src/tests/
DDawnTest.h191 class Expectation; variable
352 detail::Expectation* expectation);
426 detail::Expectation* expectation);
435 detail::Expectation* expectation);
442 detail::Expectation* expectation);
516 detail::Expectation* expectation,
531 detail::Expectation* expectation);
562 std::unique_ptr<detail::Expectation> expectation;
710 class Expectation {
712 virtual ~Expectation() = default;
[all …]
/third_party/googletest/googlemock/src/
Dgmock-spec-builders.cc505 Expectation UntypedFunctionMockerBase::GetHandleOf(ExpectationBase* exp) { in GetHandleOf()
512 return Expectation(*it); in GetHandleOf()
517 return Expectation(); in GetHandleOf()
864 Expectation::Expectation() {} in Expectation() function in testing::Expectation
866 Expectation::Expectation( in Expectation() function in testing::Expectation
870 Expectation::~Expectation() {} in ~Expectation()
873 void Sequence::AddExpectation(const Expectation& expectation) const { in AddExpectation()
/third_party/googletest/docs/reference/
Dmocking.md189 [`Expectation`](#Expectation) or [`ExpectationSet`](#ExpectationSet) objects.
197 using ::testing::Expectation;
199 Expectation init_x = EXPECT_CALL(my_mock, InitX());
200 Expectation init_y = EXPECT_CALL(my_mock, InitY());
302 EXPECT_CALL(my_mock, SetNumber(_)) // Expectation 1
304 EXPECT_CALL(my_mock, SetNumber(7)) // Expectation 2
557 ### Expectation {#Expectation}
559 `::testing::Expectation`
565 using ::testing::Expectation;
566 Expectation my_expectation = EXPECT_CALL(...);
[all …]
/third_party/skia/tests/
DRectTest.cpp173 struct Expectation { in DEF_TEST() struct
181 Expectation tests[] = { in DEF_TEST()
224 for (const Expectation& e : tests) { in DEF_TEST()

12