OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:kTestValues
(Results
1 - 4
of
4
) sorted by null
/external/chromium_org/remoting/base/
running_average_unittest.cc
10
static const int64
kTestValues
[] = { 10, 20, 30, 10, 25, 16, 15 };
17
for (size_t i = 0; i < arraysize(
kTestValues
); ++i) {
18
running_average.Record(
kTestValues
[i]);
19
EXPECT_EQ(static_cast<double>(
kTestValues
[i]), running_average.Average());
28
for (size_t i = 0; i < arraysize(
kTestValues
); ++i) {
29
running_average.Record(
kTestValues
[i]);
31
double expected =
kTestValues
[i];
33
expected = (expected +
kTestValues
[i-1]) / 2;
41
RunningAverage running_average(arraysize(
kTestValues
) + 1);
44
for (size_t i = 0; i < arraysize(
kTestValues
); ++i)
[
all
...]
rate_counter_unittest.cc
10
static const int64
kTestValues
[] = { 10, 20, 30, 10, 25, 16, 15 };
18
for (size_t i = 0; i < arraysize(
kTestValues
); ++i) {
21
rate_counter.Record(
kTestValues
[i]);
22
EXPECT_EQ(static_cast<double>(
kTestValues
[i]), rate_counter.Rate());
34
for (size_t i = 0; i < arraysize(
kTestValues
); ++i) {
35
rate_counter.Record(
kTestValues
[i]);
36
expected +=
kTestValues
[i];
50
for (size_t i = 0; i < arraysize(
kTestValues
); ++i) {
53
rate_counter.Record(
kTestValues
[i]);
54
double expected =
kTestValues
[i]
[
all
...]
/external/chromium_org/sync/internal_api/public/base/
node_ordinal_unittest.cc
16
const int64
kTestValues
[] = {
42
const size_t kNumTestValues = arraysize(
kTestValues
);
48
const NodeOrdinal ordinal = Int64ToNodeOrdinal(
kTestValues
[i]);
60
if (
kTestValues
[i] == kint64min) {
63
const NodeOrdinal ordinal = Int64ToNodeOrdinal(
kTestValues
[i]);
72
const int64 expected_value =
kTestValues
[i];
93
// Sort
kTestValues
by int64 value and then sort it by NodeOrdinal
94
// value.
kTestValues
should not already be sorted (by either
102
ordinals[i] = Int64ToNodeOrdinal(
kTestValues
[i]);
107
IndexedLessThan<int64>(
kTestValues
));
[
all
...]
unique_position_unittest.cc
504
static const int64
kTestValues
[];
515
const int64 PositionFromIntTest::
kTestValues
[] = {
542
arraysize(PositionFromIntTest::
kTestValues
);
547
UniquePosition::FromInt64(
kTestValues
[i], NextSuffix());
554
const int64 expected_value =
kTestValues
[i];
556
UniquePosition::FromInt64(
kTestValues
[i], NextSuffix());
583
kTestValues
[i], NextSuffix());
588
IndexedLessThan<int64>(
kTestValues
));
Completed in 1558 milliseconds