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

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

Issue 1221033002: Add proxy_config component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update copyrights Created 5 years, 5 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 "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/base64.h" 10 #include "base/base64.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "base/test/test_simple_task_runner.h" 14 #include "base/test/test_simple_task_runner.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 16 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
17 #include "chrome/browser/prefs/proxy_prefs.h"
18 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h" 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h"
21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings_test_utils.h" 20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings_test_utils.h"
22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h" 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 22 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h" 23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h"
24 #include "components/proxy_config/proxy_prefs.h"
25 #include "net/proxy/proxy_server.h" 25 #include "net/proxy/proxy_server.h"
26 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 using testing::_; 30 using testing::_;
31 using testing::AnyNumber; 31 using testing::AnyNumber;
32 using testing::Return; 32 using testing::Return;
33 33
34 using data_reduction_proxy::DataReductionProxySettings; 34 using data_reduction_proxy::DataReductionProxySettings;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 java_array_len); 129 java_array_len);
130 130
131 jlong value; 131 jlong value;
132 for (size_t i = 0; i < data_reduction_proxy::kNumDaysInHistory; ++i) { 132 for (size_t i = 0; i < data_reduction_proxy::kNumDaysInHistory; ++i) {
133 env_->GetLongArrayRegion(result.obj(), i, 1, &value); 133 env_->GetLongArrayRegion(result.obj(), i, 1, &value);
134 ASSERT_EQ( 134 ASSERT_EQ(
135 static_cast<long>( 135 static_cast<long>(
136 (data_reduction_proxy::kNumDaysInHistory - 1 - i) * 2), value); 136 (data_reduction_proxy::kNumDaysInHistory - 1 - i) * 2), value);
137 } 137 }
138 } 138 }
OLDNEW
« no previous file with comments | « chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698