/aosp_15_r20/prebuilts/go/linux-x86/src/internal/trace/ |
D | summary_test.go | 2 // Use of this source code is governed by a BSD-style 11 "testing" 14 func TestSummarizeGoroutinesTrace(t *testing.T) { 15 summaries := summarizeTraceTest(t, "testdata/tests/go122-gc-stress.test").Goroutines 46 func TestSummarizeGoroutinesRegionsTrace(t *testing.T) { 47 summaries := summarizeTraceTest(t, "testdata/tests/go122-annotations.test").Goroutines 48 type region struct { 52 wantRegions := map[string]region{ 53 // N.B. "pre-existing region" never even makes it into the trace. 55 // TODO(mknyszek): Add test case for end-without-a-start, which can happen at [all …]
|
D | trace_test.go | 2 // Use of this source code is governed by a BSD-style 20 "testing" 23 func TestTraceAnnotations(t *testing.T) { 24 testTraceProg(t, "annotations.go", func(t *testing.T, tb, _ []byte, _ bool) { 38 // Currently, pre-existing region is not recorded to avoid allocations. 39 {trace.EventRegionBegin, trace.BackgroundTask, []string{"post-existing region"}}, 63 reg := ev.Region() 70 want[i] = want[len(want)-1] 71 want = want[:len(want)-1] 84 func TestTraceAnnotationsStress(t *testing.T) { [all …]
|
/aosp_15_r20/external/flashrom/util/ubertest/ |
H A D | README.md | 9 - Clobber mode: The entire ROM can be used for testing. 10 - Layout mode: Target a region using a flashrom layout file. 11 - Descriptor mode: Target a region using an Intel flash descriptor (Intel systems) 12 - Flashmap mode: Target a region using a flashmap 14 …KiB block erase operations, however testing on large regions can be impractical for many devices. … 18 - DUT: Device under test 19 - Local host: The machine which is running the script. It might also be the DUT. 20 - Remote machine: DUT controlled via SSH with primary programmer. 22 - Primary programmer: The programmer which will be tested using the new version of flashrom. 23 …- Secondary programmer: An optional programmer which will be used along with the old version of fl… [all …]
|
H A D | ubertest.sh | 18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 27 # Stuff obtained from command-line 52 SCRIPT_LOGFILE="flashrom-test_script_output.txt" 60 # Region modes 73 # Remote testing options 79 SSH_CMD="ssh $REMOTE_PORT_OPTION root@${REMOTE_HOST} command -v" 86 TEST_SCRIPT_PATH="util/testing/test_v2.1.sh" 90 if [ "$(id -u)" -ne "0" ]; then 102 -b, --backup-image <path> 103 Backup image to write unconditionally at end of testing. [all …]
|
/aosp_15_r20/external/icing/icing/file/ |
H A D | memory-mapped-file_test.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 15 #include "icing/file/memory-mapped-file.h" 25 #include "icing/file/mock-filesystem.h" 26 #include "icing/testing/common-matchers.h" 27 #include "icing/testing/tmp-directory.h" 29 using ::testing::DoDefault; 30 using ::testing::Eq; 31 using ::testing::Gt; 32 using ::testing::IsNull; 33 using ::testing::Le; [all …]
|
/aosp_15_r20/frameworks/base/libs/androidfw/tests/ |
H A D | Locale_test.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 26 static ::testing::AssertionResult TestLanguage(const char* input, in TestLanguage() 28 std::vector<std::string> parts = util::SplitAndLowercase(input, '-'); in TestLanguage() 32 return ::testing::AssertionFailure() << " failed to parse '" << input in TestLanguage() 37 return ::testing::AssertionFailure() in TestLanguage() 44 return ::testing::AssertionFailure() in TestLanguage() 49 return ::testing::AssertionSuccess(); in TestLanguage() 52 static ::testing::AssertionResult TestLanguageRegion(const char* input, in TestLanguageRegion() 54 const char* region) { in TestLanguageRegion() argument 55 std::vector<std::string> parts = util::SplitAndLowercase(input, '-'); in TestLanguageRegion() [all …]
|
/aosp_15_r20/external/google-breakpad/src/client/windows/unittests/ |
H A D | exception_handler_death_test.cc | 45 #include "common/windows/string_utils-inl.h" 65 class ExceptionHandlerDeathTest : public ::testing::Test { 78 const ::testing::TestInfo* const test_info = in SetUp() 79 ::testing::UnitTest::GetInstance()->current_test_info(); in SetUp() 85 // The test case name is exposed as a c-style string, in SetUp() 87 int dwRet = MultiByteToWideChar(CP_ACP, 0, test_info->name(), in SetUp() 88 static_cast<int>(strlen(test_info->name())), in SetUp() 124 // For the in-proc test, we just need to instantiate an exception in TEST_F() 125 // handler in in-proc mode, and crash. Since the entire test is in TEST_F() 139 testing::DisableExceptionHandlerInScope disable_exception_handler; in TEST_F() [all …]
|
H A D | exception_handler_test.cc | 47 #include "common/windows/string_utils-inl.h" 50 namespace testing { namespace 61 } // namespace testing 77 class ExceptionHandlerTest : public ::testing::Test { 116 const ::testing::TestInfo* const test_info = in SetUp() 117 ::testing::UnitTest::GetInstance()->current_test_info(); in SetUp() 123 // THe test case name is exposed to use as a c-style string, in SetUp() 125 int dwRet = MultiByteToWideChar(CP_ACP, 0, test_info->name(), in SetUp() 126 static_cast<int>(strlen(test_info->name())), in SetUp() 162 full_dump_file = dump_file.substr(0, dump_file.length() - 4) + L"-full.dmp"; in ClientDumpCallback() [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/ |
D | testinggoroutine.go | 2 // Use of this source code is governed by a BSD-style 43 if !analysisutil.Imports(pass.Pkg, "testing") { 57 r := c.region 89 // Check for t.Forbidden() calls within each region r that is a 93 for _, region := range regions { 94 ast.Inspect(region, func(n ast.Node) bool { 95 if n == region { 96 return true // always descend into the region itself. 98 return false // will be visited by another region. 110 for _, e := range asyncs[region] { [all …]
|
/aosp_15_r20/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
H A D | OutputTest.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 17 #include <android-base/stringprintf.h> 36 #include <ui/Region.h> 55 using testing::_; 56 using testing::ByMove; 57 using testing::ByRef; 58 using testing::DoAll; 59 using testing::ElementsAre; 60 using testing::ElementsAreArray; 61 using testing::Eq; [all …]
|
/aosp_15_r20/external/libchrome/base/memory/ |
H A D | shared_memory_region_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 14 #include "testing/gtest/include/gtest/gtest.h" 32 class SharedMemoryRegionTest : public ::testing::Test { 48 typedef ::testing::Types<WritableSharedMemoryRegion, 55 TypeParam region; in TYPED_TEST() local 56 EXPECT_FALSE(region.IsValid()); in TYPED_TEST() 58 typename TypeParam::MappingType mapping = region.Map(); in TYPED_TEST() 63 TypeParam moved_region = std::move(this->region_); in TYPED_TEST() 64 EXPECT_FALSE(this->region_.IsValid()); in TYPED_TEST() 67 // Check that moved region maps correctly. in TYPED_TEST() [all …]
|
H A D | ref_counted_memory_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 12 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gtest/include/gtest/gtest.h" 15 using testing::Each; 16 using testing::ElementsAre; 23 EXPECT_EQ(10U, mem->size()); in TEST() 24 EXPECT_EQ("static mem", std::string(mem->front_as<char>(), mem->size())); in TEST() 35 ASSERT_EQ(2U, mem->size()); in TEST() 36 EXPECT_EQ(45U, mem->front()[0]); in TEST() 37 EXPECT_EQ(99U, mem->front()[1]); in TEST() [all …]
|
/aosp_15_r20/external/cronet/base/memory/ |
H A D | shared_memory_region_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 14 #include "testing/gtest/include/gtest/gtest.h" 32 class SharedMemoryRegionTest : public ::testing::Test { 48 typedef ::testing::Types<WritableSharedMemoryRegion, 55 TypeParam region; in TYPED_TEST() local 56 EXPECT_FALSE(region.IsValid()); in TYPED_TEST() 58 typename TypeParam::MappingType mapping = region.Map(); in TYPED_TEST() 63 TypeParam moved_region = std::move(this->region_); in TYPED_TEST() 64 EXPECT_FALSE(this->region_.IsValid()); in TYPED_TEST() 67 // Check that moved region maps correctly. in TYPED_TEST() [all …]
|
/aosp_15_r20/external/perfetto/infra/ci/ |
H A D | Makefile | 7 # http://www.apache.org/licenses/LICENSE-2.0 18 override GCE_LOCAL_STARTUP_SCRIPT := worker/gce-startup-script.sh 19 override SCRIPT_HASH := $(shell git hash-object ${GCE_LOCAL_STARTUP_SCRIPT} | cut -c 1-8) 20 override GCE_STARTUP_SCRIPT := gs://perfetto/ci/worker-startup-script/${SCRIPT_HASH} 26 @echo "build-worker: Builds the worker container" 27 @echo "build-sandbox: Builds the sandbox container" 29 @echo "deploy-controller: Deploys and restarts the controller" 30 @echo "deploy-frontend: Deploys and restarts the controller" 31 @echo "stop-workers: Stops the whole workers GCE instance group" 32 @echo "start-workers: Starts the whole workers GCE instance group" [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/core/auth-crt/src/test/java/software/amazon/awssdk/authcrt/signer/ |
H A D | SignerTestUtils.java | 40 import software.amazon.awssdk.regions.Region; 72 … executionAttributes.putAttribute(AwsSignerExecutionAttribute.SIGNING_REGION, Region.AWS_GLOBAL); in buildBasicExecutionAttributes() 85 testCase.regionSet = "aws-global"; in createBasicHeaderSigningTestCase() 91 "host:demo.us-east-1.amazonaws.com\n" + in createBasicHeaderSigningTestCase() 92 "x-amz-archive-description:test test\n" + in createBasicHeaderSigningTestCase() 93 "x-amz-date:20200803T174823Z\n" + in createBasicHeaderSigningTestCase() 94 "x-amz-region-set:aws-global\n" + in createBasicHeaderSigningTestCase() 96 … "host;x-amz-archive-description;x-amz-date;x-amz-region-set\n" + in createBasicHeaderSigningTestCase() 109 testCase.regionSet = "aws-global"; in createBasicChunkedSigningTestCase() 115 "host:demo.us-east-1.amazonaws.com\n" + in createBasicChunkedSigningTestCase() [all …]
|
/aosp_15_r20/external/OpenCL-CTS/test_conformance/basic/ |
H A D | test_enqueue_map.cpp | 8 // http://www.apache.org/licenses/LICENSE-2.0 29 // clang-format off 45 // clang-format on 61 log_info("Testing with cl_mem_flags src: %s\n", in test_enqueue_map_buffer() 73 test_error(error, "Unable to create testing buffer"); in test_enqueue_map_buffer() 86 size_t offset = (size_t)random_in_range(0, (int)bufferSize - 1, d); in test_enqueue_map_buffer() 88 (size_t)random_in_range(1, (int)(bufferSize - offset), d); in test_enqueue_map_buffer() 98 return -1; in test_enqueue_map_buffer() 101 // Write into the region in test_enqueue_map_buffer() 108 value = spin - value; in test_enqueue_map_buffer() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/services/eventbridge/src/it/java/software/amazon/awssdk/services/eventbridge/ |
H A D | EventBridgeMultiRegionEndpointIntegrationTest.java | 32 import software.amazon.awssdk.regions.Region; 47 private static final String RESOURCE_PREFIX = "java-sdk-integ-test-eb-mrep-"; 48 private static final Region PRIMARY_REGION = Region.US_EAST_1; 49 private static final Region FAILOVER_REGION = Region.US_WEST_2; 61 .region(Region.AWS_GLOBAL) in setup() 67 private EventBridgeClient createEventBridgeClient(Region region) { in createEventBridgeClient() argument 69 .region(region) in createEventBridgeClient() 85 …tThat(lastRequest().firstMatchingHeader("Authorization").get()).contains("AWS4-ECDSA-P256-SHA256"); in testPutEventsToMultiRegionEndpoint() 86 assertThat(lastRequest().firstMatchingHeader("X-Amz-Region-Set")).hasValue("*"); in testPutEventsToMultiRegionEndpoint() 98 log.info(() -> "healthCheckId: " + healthCheckId); in prepareEndpoint() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/codegen/src/test/resources/software/amazon/awssdk/codegen/poet/rules/ |
H A D | endpoint-rules-test-class.java | 11 import software.amazon.awssdk.core.rules.testing.AsyncTestCase; 12 import software.amazon.awssdk.core.rules.testing.BaseRuleSetClientTest; 13 import software.amazon.awssdk.core.rules.testing.SyncTestCase; 14 import software.amazon.awssdk.core.rules.testing.model.Expect; 16 import software.amazon.awssdk.regions.Region; 49 new SyncTestCase("test case 3", () -> { in syncTestCases() 54 builder.region(Region.of("us-east-1")); in syncTestCases() 59 new SyncTestCase("test case 4", () -> { in syncTestCases() 64 builder.region(Region.of("us-east-6")); in syncTestCases() 70 new SyncTestCase("Has complex operation input", () -> { in syncTestCases() [all …]
|
/aosp_15_r20/external/libchrome/mojo/public/cpp/platform/tests/ |
H A D | platform_handle_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 17 #include "testing/gtest/include/gtest/gtest.h" 58 class PlatformHandleTest : public testing::Test, 59 public testing::WithParamInterface<HandleType> { 144 // Creates a shared memory region with some test data in it. Leaves the 147 auto region = base::UnsafeSharedMemoryRegion::Create(kTestData.size()); in SetUpSharedMemory() local 148 auto mapping = region.Map(); in SetUpSharedMemory() 152 std::move(region)); in SetUpSharedMemory() 173 auto region = in GetSharedMemoryContents() local 175 auto mapping = region.Map(); in GetSharedMemoryContents() [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/runtime/ |
D | symtab_test.go | 2 // Use of this source code is governed by a BSD-style 10 "testing" 14 func TestCaller(t *testing.T) { 15 procs := runtime.GOMAXPROCS(-1) 22 c <- true 25 <-c 34 func testCallerFoo(t *testing.T) { 39 func testCallerBar(t *testing.T) { 114 func TestLineNumber(t *testing.T) { 147 {"intLit", intLit - 2*firstLine, 34 + 35 + 36}, [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/gcs/ |
H A D | gcs_filesystem_test.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 73 class GCSFilesystemTest : public ::testing::Test { 78 ::testing::UnitTest::GetInstance()->current_test_info()->name()); in SetUp() 81 filesystem_->plugin_filesystem = nullptr; in SetUp() 87 if (filesystem_->plugin_filesystem != nullptr) in TearDown() 103 if (file->plugin_file != nullptr) tf_writable_file::Cleanup(file); in GetWriter() 107 writer->plugin_file = nullptr; in GetWriter() 116 if (file->plugin_file != nullptr) in GetReader() 121 reader->plugin_file = nullptr; in GetReader() 170 ::testing::AssertionResult WriteToServer(const std::string& path, size_t offset, in WriteToServer() [all …]
|
/aosp_15_r20/system/core/libcutils/ |
H A D | ashmem_test.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 27 #include <android-base/macros.h> 28 #include <android-base/unique_fd.h> 47 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap() argument 50 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); in TestMmap() 51 ASSERT_NE(MAP_FAILED, *region); in TestMmap() 103 ::testing::ExitedWithCode(0), ""); in TEST() 114 void* region = nullptr; in TEST() local 116 // Allocate a 4-page buffer, but leave page-sized holes on either side in TEST() 122 ASSERT_NO_FATAL_FAILURE(TestMmap(fd, dataSize, PROT_READ | PROT_WRITE, ®ion, holeSize)); in TEST() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/services/backup/src/main/resources/codegen-resources/ |
H A D | service-2.json | 4 "apiVersion":"2018-11-15", 7 "protocol":"rest-json", 11 "uid":"backup-2018-11-15" 18 "requestUri":"/legal-holds/{legalHoldId}", 66 … <a href=\"https://docs.aws.amazon.com/aws-backup/latest/devguide/assigning-resources.html#assigni… 73 "requestUri":"/backup-vaults/{backupVaultName}" 102 …of controls that you can use to evaluate your backup practices. By using pre-built customizable co… 109 "requestUri":"/legal-holds/" 126 "requestUri":"/logically-air-gapped-backup-vaults/{backupVaultName}" 138 …to where backups may be copied.</p> <p>This request includes a name, the Region, the maximum numbe… [all …]
|
/aosp_15_r20/frameworks/av/services/camera/libcameraservice/tests/ |
H A D | RotateAndCropMapperTest.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 33 using ::testing::ElementsAreArray; 34 using ::testing::Each; 35 using ::testing::AllOf; 36 using ::testing::Ge; 37 using ::testing::Le; 42 EXPECT_THAT(vec[i] - array[i], AllOf(Ge(-N), Le(N))) << msg " failed at index:" << i; \ 160 full_crop[0] + (full_crop[2] - rw) / 2, full_crop[1], in TEST() 165 << "Rotated AE region isn't right"; in TEST() 169 << "Rotated crop region isn't right"; in TEST() [all …]
|
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
H A D | exec_prot.c | 1 // SPDX-License-Identifier: GPL-2.0 48 if (sinfo->si_addr != (void *)fault_addr) in trap_handler() 56 fault_code = sinfo->si_code; in segv_handler() 59 if (sinfo->si_addr != (void *)fault_addr) { in segv_handler() 82 remaining_faults--; in segv_handler() 88 * Jump to the executable region. in check_exec_fault() 91 * first instruction word from a trap to a no-op succeeded. in check_exec_fault() 93 fault_code = -1; in check_exec_fault() 135 /* Setup executable region */ in test() 139 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in test() [all …]
|