prefetch_test.cc
Go to the documentation of this file.
1 // Copyright 2022 The Abseil Authors.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
16 
17 #include "gtest/gtest.h"
18 
19 namespace {
20 
21 int number = 42;
22 
23 TEST(Prefetch, TemporalLocalityNone) {
25  EXPECT_EQ(number, 42);
26 }
27 
28 TEST(Prefetch, TemporalLocalityLow) {
30  EXPECT_EQ(number, 42);
31 }
32 
33 TEST(Prefetch, TemporalLocalityMedium) {
35  EXPECT_EQ(number, 42);
36 }
37 
38 TEST(Prefetch, TemporalLocalityHigh) {
40  EXPECT_EQ(number, 42);
41 }
42 
43 } // namespace
absl::base_internal::PrefetchT2
void PrefetchT2(const void *addr)
Definition: prefetch.h:130
absl::base_internal::PrefetchNta
void PrefetchNta(const void *addr)
Definition: prefetch.h:131
EXPECT_EQ
#define EXPECT_EQ(a, b)
Definition: iomgr/time_averaged_stats_test.cc:27
TEST
#define TEST(name, init_size,...)
Definition: arena_test.cc:75
number
int32_t number
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:850
absl::base_internal::PrefetchT0
void PrefetchT0(const void *addr)
Definition: prefetch.h:128
prefetch.h
absl::base_internal::PrefetchT1
void PrefetchT1(const void *addr)
Definition: prefetch.h:129


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:54