| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome_network_delegate.h" | 5 #include "chrome/browser/net/chrome_network_delegate.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/prefs/public/pref_member.h" | 10 #include "base/prefs/public/pref_member.h" |
| 11 #include "chrome/browser/extensions/event_router_forwarder.h" | 11 #include "chrome/browser/extensions/event_router_forwarder.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/test/base/testing_pref_service.h" | 14 #include "chrome/test/base/testing_pref_service_syncable.h" |
| 15 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
| 16 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
| 17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
| 18 #include "net/url_request/url_request.h" | 18 #include "net/url_request/url_request.h" |
| 19 #include "net/url_request/url_request_test_util.h" | 19 #include "net/url_request/url_request_test_util.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 class ChromeNetworkDelegateTest : public testing::Test { | 22 class ChromeNetworkDelegateTest : public testing::Test { |
| 23 protected: | 23 protected: |
| 24 ChromeNetworkDelegateTest() | 24 ChromeNetworkDelegateTest() |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 "q=google"); | 270 "q=google"); |
| 271 | 271 |
| 272 // Test the home page with parameters and safe set to off. | 272 // Test the home page with parameters and safe set to off. |
| 273 CheckAddedParameters("http://google.com/search?q=google&safe=off", | 273 CheckAddedParameters("http://google.com/search?q=google&safe=off", |
| 274 "q=google&safe=off"); | 274 "q=google&safe=off"); |
| 275 | 275 |
| 276 // Test the home page with parameters and safe set to active. | 276 // Test the home page with parameters and safe set to active. |
| 277 CheckAddedParameters("http://google.com/search?q=google&safe=active", | 277 CheckAddedParameters("http://google.com/search?q=google&safe=active", |
| 278 "q=google&safe=active"); | 278 "q=google&safe=active"); |
| 279 } | 279 } |
| OLD | NEW |