Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/base64.h" 12 #include "base/base64.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/prefs/pref_service.h"
16 #include "base/test/test_simple_task_runner.h" 15 #include "base/test/test_simple_task_runner.h"
17 #include "base/time/time.h" 16 #include "base/time/time.h"
18 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 17 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
19 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h" 20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h"
22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings_test_utils.h" 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings_test_utils.h"
23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h" 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
25 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h" 24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h"
26 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h" 25 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h"
26 #include "components/prefs/pref_service.h"
27 #include "components/proxy_config/proxy_prefs.h" 27 #include "components/proxy_config/proxy_prefs.h"
28 #include "net/proxy/proxy_server.h" 28 #include "net/proxy/proxy_server.h"
29 #include "testing/gmock/include/gmock/gmock.h" 29 #include "testing/gmock/include/gmock/gmock.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "url/gurl.h" 31 #include "url/gurl.h"
32 32
33 using testing::_; 33 using testing::_;
34 using testing::AnyNumber; 34 using testing::AnyNumber;
35 using testing::Return; 35 using testing::Return;
36 36
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 java_array_len); 132 java_array_len);
133 133
134 jlong value; 134 jlong value;
135 for (size_t i = 0; i < data_reduction_proxy::kNumDaysInHistory; ++i) { 135 for (size_t i = 0; i < data_reduction_proxy::kNumDaysInHistory; ++i) {
136 env_->GetLongArrayRegion(result.obj(), i, 1, &value); 136 env_->GetLongArrayRegion(result.obj(), i, 1, &value);
137 ASSERT_EQ( 137 ASSERT_EQ(
138 static_cast<long>( 138 static_cast<long>(
139 (data_reduction_proxy::kNumDaysInHistory - 1 - i) * 2), value); 139 (data_reduction_proxy::kNumDaysInHistory - 1 - i) * 2), value);
140 } 140 }
141 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698