OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" | 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
9 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
10 #include "base/base64.h" | 12 #include "base/base64.h" |
11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
14 #include "base/test/test_simple_task_runner.h" | 16 #include "base/test/test_simple_task_runner.h" |
15 #include "base/time/time.h" | 17 #include "base/time/time.h" |
16 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 18 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 java_array_len); | 132 java_array_len); |
131 | 133 |
132 jlong value; | 134 jlong value; |
133 for (size_t i = 0; i < data_reduction_proxy::kNumDaysInHistory; ++i) { | 135 for (size_t i = 0; i < data_reduction_proxy::kNumDaysInHistory; ++i) { |
134 env_->GetLongArrayRegion(result.obj(), i, 1, &value); | 136 env_->GetLongArrayRegion(result.obj(), i, 1, &value); |
135 ASSERT_EQ( | 137 ASSERT_EQ( |
136 static_cast<long>( | 138 static_cast<long>( |
137 (data_reduction_proxy::kNumDaysInHistory - 1 - i) * 2), value); | 139 (data_reduction_proxy::kNumDaysInHistory - 1 - i) * 2), value); |
138 } | 140 } |
139 } | 141 } |
OLD | NEW |