Home
last modified time | relevance | path

Searched refs:kMaxSize (Results 1 – 25 of 76) sorted by relevance

1234

/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutexset_test.cc91 for (uptr i = 0; i < MutexSet::kMaxSize; i++) { in TEST()
94 EXPECT_EQ(mset.Size(), MutexSet::kMaxSize); in TEST()
95 for (uptr i = 0; i < MutexSet::kMaxSize; i++) { in TEST()
99 for (uptr i = 0; i < MutexSet::kMaxSize; i++) { in TEST()
102 EXPECT_EQ(mset.Size(), MutexSet::kMaxSize); in TEST()
103 for (uptr i = 0; i < MutexSet::kMaxSize; i++) { in TEST()
110 for (uptr i = 0; i < MutexSet::kMaxSize; i++) { in TEST()
115 EXPECT_EQ(mset.Size(), MutexSet::kMaxSize); in TEST()
116 for (uptr i = 0; i < MutexSet::kMaxSize; i++) { in TEST()
118 Expect(mset, i, MutexSet::kMaxSize - 1, in TEST()
[all …]
/external/chromium_org/base/allocator/
Dtcmalloc_unittest.cc18 TCMallocDoMallocForTest(ExcludeSpaceForMarkForTest(kMaxSize + 1))); in TEST()
27 TCMallocDoMallocForTest(ExcludeSpaceForMarkForTest(kMaxSize + 1))); in TEST()
29 for (int offset = kPageSize; offset < kMaxSize; offset += kPageSize) { in TEST()
35 ASSERT_DEATH(TCMallocDoFreeForTest(p + kMaxSize), in TEST()
41 TCMallocDoMallocForTest(ExcludeSpaceForMarkForTest(kMaxSize + 1))); in TEST()
50 size <= ExcludeSpaceForMarkForTest(kMaxSize); in TEST()
70 for (; size <= ExcludeSpaceForMarkForTest(kMaxSize); size <<= 1) { in TEST()
Dallocator_unittests.cc14 static const size_t kMaxSize = ~static_cast<size_t>(0); variable
378 TestCalloc(kMaxSize, 2, false); in TEST()
379 TestCalloc(2, kMaxSize, false); in TEST()
380 TestCalloc(kMaxSize, kMaxSize, false); in TEST()
/external/chromium_org/chrome/browser/chromeos/policy/
Dcloud_external_data_store_unittest.cc26 const size_t kMaxSize = 100; variable
65 EXPECT_FALSE(store.Load(kPolicy1, kData2Hash, kMaxSize, &data)); in TEST_F()
68 EXPECT_TRUE(store.Load(kPolicy1, kData1Hash, kMaxSize, &data)); in TEST_F()
109 EXPECT_FALSE(store.Load(kPolicy1, kData1Hash, kMaxSize, &data)); in TEST_F()
125 EXPECT_TRUE(store.Load(kPolicy1, kData1Hash, kMaxSize, &data)); in TEST_F()
127 EXPECT_TRUE(store.Load(kPolicy2, kData2Hash, kMaxSize, &data)); in TEST_F()
175 EXPECT_TRUE(store1.Load(kPolicy1, kData1Hash, kMaxSize, &data)); in TEST_F()
177 EXPECT_FALSE(store1.Load(kPolicy2, kData2Hash, kMaxSize, &data)); in TEST_F()
179 EXPECT_FALSE(store2.Load(kPolicy1, kData1Hash, kMaxSize, &data)); in TEST_F()
180 EXPECT_TRUE(store2.Load(kPolicy2, kData2Hash, kMaxSize, &data)); in TEST_F()
/external/chromium_org/ui/surface/
Dtransport_dib.cc11 static const size_t kMaxSize = static_cast<size_t>(INT_MAX); in VerifyCanvasSize() local
14 if (w <= 0 || h <= 0 || static_cast<size_t>(w) > (kMaxSize / one_stride) || in VerifyCanvasSize()
15 static_cast<size_t>(h) > (kMaxSize / stride)) { in VerifyCanvasSize()
/external/chromium/net/disk_cache/
Dblock_files_unittest.cc38 const int kMaxSize = 35000; in TEST_F() local
39 Addr address[kMaxSize]; in TEST_F()
42 for (int i = 0; i < kMaxSize; i++) { in TEST_F()
48 for (int i = 0; i < kMaxSize * 4; i += 2) { in TEST_F()
49 int target = i % kMaxSize; in TEST_F()
65 const int kMaxSize = 35000; in TEST_F() local
66 Addr address[kMaxSize]; in TEST_F()
69 for (int i = 0; i < kMaxSize; i++) { in TEST_F()
74 for (int i = 0; i < kMaxSize; i++) { in TEST_F()
Ddisk_cache_perftest.cc40 const int kMaxSize = 16 * 1024 - 1; variable
48 scoped_refptr<net::IOBuffer> buffer2(new net::IOBuffer(kMaxSize)); in TimeWrite()
51 CacheTestFillBuffer(buffer2->data(), kMaxSize, false); in TimeWrite()
65 entry.data_len = rand() % kMaxSize; in TimeWrite()
99 scoped_refptr<net::IOBuffer> buffer2(new net::IOBuffer(kMaxSize)); in TimeRead()
102 CacheTestFillBuffer(buffer2->data(), kMaxSize, false); in TimeRead()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dcommon.h74 static const size_t kMaxSize = 256 * 1024; variable
90 static const size_t kMinThreadCacheSize = kMaxSize * 2;
168 ((kMaxSize + 127 + (120 << 7)) >> 7) + 1;
174 ASSERT(s <= kMaxSize); in ClassIndex()
Dcommon.cc57 if (size > kMaxSize) { in AlignmentForSize()
105 if (ClassIndex(kMaxSize) >= sizeof(class_array_)) { in Init()
107 "Invalid class index for kMaxSize", ClassIndex(kMaxSize)); in Init()
114 for (size_t size = kAlignment; size <= kMaxSize; size += alignment) { in Init()
167 for (size_t size = 0; size <= kMaxSize; size++) { in Init()
/external/chromium_org/chrome/common/metrics/
Dcaching_permuted_entropy_provider.cc76 const int kMaxSize = 25; in AddToCache() local
77 if (cache_.entry_size() >= kMaxSize) { in AddToCache()
83 for (int i = 1; i < kMaxSize; ++i) in AddToCache()
85 entry = cache_.mutable_entry(kMaxSize - 1); in AddToCache()
/external/chromium_org/net/disk_cache/
Dblock_files_unittest.cc39 const int kMaxSize = 35000; in TEST_F() local
40 Addr address[kMaxSize]; in TEST_F()
43 for (int i = 0; i < kMaxSize; i++) { in TEST_F()
49 for (int i = 0; i < kMaxSize * 4; i += 2) { in TEST_F()
50 int target = i % kMaxSize; in TEST_F()
65 const int kMaxSize = 35000; in TEST_F() local
66 Addr address[kMaxSize]; in TEST_F()
69 for (int i = 0; i < kMaxSize; i++) { in TEST_F()
74 for (int i = 0; i < kMaxSize; i++) { in TEST_F()
Ddisk_cache_perftest.cc38 const int kMaxSize = 16 * 1024 - 1; variable
46 scoped_refptr<net::IOBuffer> buffer2(new net::IOBuffer(kMaxSize)); in TimeWrite()
49 CacheTestFillBuffer(buffer2->data(), kMaxSize, false); in TimeWrite()
61 entry.data_len = rand() % kMaxSize; in TimeWrite()
98 scoped_refptr<net::IOBuffer> buffer2(new net::IOBuffer(kMaxSize)); in TimeRead()
101 CacheTestFillBuffer(buffer2->data(), kMaxSize, false); in TimeRead()
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dcommon.cc61 if (size > kMaxSize) { in AlignmentForSize()
109 if (ClassIndex(kMaxSize) >= sizeof(class_array_)) { in Init()
111 "Invalid class index for kMaxSize", ClassIndex(kMaxSize)); in Init()
118 for (size_t size = kMinClassSize; size <= kMaxSize; size += alignment) { in Init()
171 for (size_t size = 0; size <= kMaxSize; size++) { in Init()
Dcommon.h93 static const size_t kMaxSize = 8u * kPageSize; variable
107 static const size_t kMinThreadCacheSize = kMaxSize * 2;
185 ((kMaxSize + 127 + (120 << 7)) >> 7) + 1;
191 ASSERT(s <= kMaxSize); in ClassIndex()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutexset.cc18 const uptr MutexSet::kMaxSize; member in __tsan::MutexSet
35 if (size_ == kMaxSize) { in Add()
45 CHECK_EQ(size_, kMaxSize - 1); in Add()
Dtsan_mutexset.h25 static const uptr kMaxSize = 16;
44 Desc descs_[kMaxSize];
/external/chromium_org/content/renderer/browser_plugin/
Dbrowser_plugin_backing_store.cc17 static const int kMaxSize = 23170; variable
47 if (width <= 0 || width > kMaxSize || in PaintToBackingStore()
48 height <= 0 || height > kMaxSize) in PaintToBackingStore()
/external/skia/bench/
DXfermodeBench.cpp41 SkScalar w = random.nextRangeScalar(SkIntToScalar(kMinSize), SkIntToScalar(kMaxSize)); in onDraw()
42 SkScalar h = random.nextRangeScalar(SkIntToScalar(kMinSize), SkIntToScalar(kMaxSize)); in onDraw()
56 kMaxSize = 100, enumerator
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.cc164 const int kMaxSize = 1024; // We don't want a summary too long. in ReportErrorSummary() local
165 InternalScopedBuffer<char> buff(kMaxSize); in ReportErrorSummary()
166 internal_snprintf(buff.data(), kMaxSize, "%s: %s %s:%d %s", in ReportErrorSummary()
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Daddressmap_unittest.cc82 static const size_t kMaxSize = 100*1000*1000; in main() local
104 CHECK(!map.FindInside(&SizeFunc, kMaxSize, p + offs, &res_p)); in main()
142 CHECK(!map.FindInside(&SizeFunc, kMaxSize, p + offs, &res_p)); in main()
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
Daddressmap_unittest.cc82 static const size_t kMaxSize = 100*1000*1000; in main() local
104 CHECK(!map.FindInside(&SizeFunc, kMaxSize, p + offs, &res_p)); in main()
142 CHECK(!map.FindInside(&SizeFunc, kMaxSize, p + offs, &res_p)); in main()
/external/chromium/base/allocator/
Dallocator_unittests.cc15 static const size_t kMaxSize = ~static_cast<size_t>(0); variable
379 TestCalloc(kMaxSize, 2, false); in TEST()
380 TestCalloc(2, kMaxSize, false); in TEST()
381 TestCalloc(kMaxSize, kMaxSize, false); in TEST()
/external/chromium_org/gpu/command_buffer/service/
Drenderbuffer_manager_unittest.cc21 static const GLint kMaxSize = 128; member in gpu::gles2::RenderbufferManagerTestBase
29 memory_tracker, kMaxSize, kMaxSamples, depth24_supported)); in SetUpBase()
71 const GLint RenderbufferManagerTestBase::kMaxSize; member in gpu::gles2::RenderbufferManagerTestBase
79 EXPECT_EQ(kMaxSize, manager_->max_renderbuffer_size()); in TEST_F()
/external/chromium_org/gpu/command_buffer/common/
Dcmd_buffer_common.cc15 const int32 CommandHeader::kMaxSize; member in gpu::CommandHeader
/external/chromium_org/base/containers/
Dmru_cache_unittest.cc233 static const Cache::size_type kMaxSize = 3; in TEST() local
238 Cache cache(kMaxSize); in TEST()
248 EXPECT_EQ(kMaxSize, cache.size()); in TEST()

1234