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

Side by Side Diff: chrome/browser/net/chrome_network_delegate_unittest.cc

Issue 10857031: Move PrefMember and PrefChangeRegistrar to api directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/api/prefs/pref_member.h"
10 #include "chrome/browser/extensions/event_router_forwarder.h" 11 #include "chrome/browser/extensions/event_router_forwarder.h"
11 #include "chrome/browser/prefs/pref_member.h"
12 #include "net/url_request/url_request_test_util.h" 12 #include "net/url_request/url_request_test_util.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 class ChromeNetworkDelegateTest : public testing::Test { 15 class ChromeNetworkDelegateTest : public testing::Test {
16 protected: 16 protected:
17 ChromeNetworkDelegateTest() 17 ChromeNetworkDelegateTest()
18 : forwarder_(new extensions::EventRouterForwarder()) { 18 : forwarder_(new extensions::EventRouterForwarder()) {
19 } 19 }
20 20
21 virtual void SetUp() OVERRIDE { 21 virtual void SetUp() OVERRIDE {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool never_throttle_requests_original_value_; 72 bool never_throttle_requests_original_value_;
73 MessageLoopForIO message_loop_; 73 MessageLoopForIO message_loop_;
74 74
75 scoped_refptr<extensions::EventRouterForwarder> forwarder_; 75 scoped_refptr<extensions::EventRouterForwarder> forwarder_;
76 BooleanPrefMember pref_member_; 76 BooleanPrefMember pref_member_;
77 }; 77 };
78 78
79 TEST_F(ChromeNetworkDelegateTest, NeverThrottleLogic) { 79 TEST_F(ChromeNetworkDelegateTest, NeverThrottleLogic) {
80 NeverThrottleLogicImpl(); 80 NeverThrottleLogicImpl();
81 } 81 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/browser/net/chrome_url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698