Searched refs:kNumDaysInHistory (Results 1 - 9 of 9) sorted by relevance

/external/chromium_org/components/data_reduction_proxy/browser/
H A Ddata_reduction_proxy_metrics.cc189 // of |kNumDaysInHistory| elements of daily total content lengths for the past
190 // |kNumDaysInHistory| days.
200 // there should be exactly |kNumDaysInHistory| days in the histories.
201 MaintainContentLengthPrefsWindow(update_, kNumDaysInHistory);
209 AddInt64ToListPref(kNumDaysInHistory - 1, content_length, update_);
233 days_since_last_update = kNumDaysInHistory;
238 // lists longer than kNumDaysInHistory. The additional items will be cut off
241 i < days_since_last_update && i < static_cast<int>(kNumDaysInHistory);
247 // there should be exactly |kNumDaysInHistory| days in the histories.
248 MaintainContentLengthPrefsWindow(update_, kNumDaysInHistory);
[all...]
H A Ddata_reduction_proxy_statistics_prefs_unittest.cc17 // TODO Make kNumDaysInHistory accessible from DataReductionProxySettings.
18 const size_t kNumDaysInHistory = 60; member in namespace:__anon6444
45 // Create daily pref list of |kNumDaysInHistory| zero values.
49 for (size_t i = 0; i < kNumDaysInHistory; ++i) {
106 for (size_t i = 0; i < kNumDaysInHistory; ++i) {
112 for (size_t i = 0; i < kNumDaysInHistory/2; ++i) {
152 for (size_t i = 0; i < kNumDaysInHistory; ++i) {
158 for (size_t i = 0; i < kNumDaysInHistory/2; ++i) {
H A Ddata_reduction_proxy_settings.cc375 for (size_t i = 0; i < kNumDaysInHistory; ++i) {
480 if (list_value->GetSize() == kNumDaysInHistory) {
481 for (size_t i = 0; i < kNumDaysInHistory; ++i) {
494 DCHECK_LE(days, kNumDaysInHistory);
502 if (original_list->GetSize() != kNumDaysInHistory ||
503 received_list->GetSize() != kNumDaysInHistory) {
513 for (size_t i = kNumDaysInHistory - days;
514 i < kNumDaysInHistory; ++i) {
H A Ddata_reduction_proxy_settings_unittest.cc165 settings_->GetContentLengths(kNumDaysInHistory,
179 // Request |kNumDaysInHistory| days.
180 settings_->GetContentLengths(kNumDaysInHistory,
184 const unsigned int days = kNumDaysInHistory;
185 // Received content length history values are 0 to |kNumDaysInHistory - 1|.
188 // |2 * (kNumDaysInHistory - 1)|.
194 // Request |kNumDaysInHistory - 1| days.
195 settings_->GetContentLengths(kNumDaysInHistory - 1,
390 ASSERT_EQ(kNumDaysInHistory, result.size());
392 for (size_t i = 0; i < kNumDaysInHistory;
[all...]
H A Ddata_reduction_proxy_metrics_unittest.cc22 const size_t kNumDaysInHistory = 60; member in namespace:__anon6430
161 // Create daily pref list of |kNumDaysInHistory| zero values.
165 for (size_t i = 0; i < kNumDaysInHistory; ++i) {
171 // If the count of values is less than kNumDaysInHistory, zeros are assumed
174 ASSERT_GE(kNumDaysInHistory, count);
176 ASSERT_EQ(kNumDaysInHistory, update->GetSize()) << "Pref: " << pref;
181 GetListPrefInt64Value(*update, kNumDaysInHistory - count + i))
182 << "index=" << (kNumDaysInHistory - count + i);
184 for (size_t i = 0; i < kNumDaysInHistory - count; ++i) {
609 // Forward |kNumDaysInHistory| mor
[all...]
H A Ddata_reduction_proxy_settings.h37 const unsigned int kNumDaysInHistory = 60; member in namespace:data_reduction_proxy
42 COMPILE_ASSERT(kNumDaysInHistorySummary <= kNumDaysInHistory,
156 // received over the last |kNumDaysInHistory| before any compression by the
176 // last |kNumDaysInHistory| days.
H A Ddata_reduction_proxy_settings_test_utils.cc105 for (int64 i = 0; i < kNumDaysInHistory; i++) {
/external/chromium_org/chrome/browser/net/spdyproxy/
H A Ddata_reduction_proxy_settings_unittest_android.cc185 ASSERT_EQ(static_cast<jsize>(data_reduction_proxy::kNumDaysInHistory),
189 for (size_t i = 0; i < data_reduction_proxy::kNumDaysInHistory; ++i) {
193 (data_reduction_proxy::kNumDaysInHistory - 1 - i) * 2), value);
H A Ddata_reduction_proxy_settings_android.cc121 data_reduction_proxy::kNumDaysInHistory);
127 DCHECK_EQ(lengths.size(), data_reduction_proxy::kNumDaysInHistory);

Completed in 863 milliseconds