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

Side by Side Diff: chrome/browser/extensions/api/web_request/web_request_api_unittest.cc

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 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 <map> 5 #include <map>
6 #include <queue> 6 #include <queue>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/content_settings/cookie_settings.h" 23 #include "chrome/browser/content_settings/cookie_settings.h"
24 #include "chrome/browser/extensions/api/web_request/upload_data_presenter.h" 24 #include "chrome/browser/extensions/api/web_request/upload_data_presenter.h"
25 #include "chrome/browser/extensions/api/web_request/web_request_api.h" 25 #include "chrome/browser/extensions/api/web_request/web_request_api.h"
26 #include "chrome/browser/extensions/api/web_request/web_request_api_constants.h" 26 #include "chrome/browser/extensions/api/web_request/web_request_api_constants.h"
27 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h" 27 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h"
28 #include "chrome/browser/extensions/event_router_forwarder.h" 28 #include "chrome/browser/extensions/event_router_forwarder.h"
29 #include "chrome/browser/extensions/extension_warning_set.h" 29 #include "chrome/browser/extensions/extension_warning_set.h"
30 #include "chrome/browser/net/about_protocol_handler.h" 30 #include "chrome/browser/net/about_protocol_handler.h"
31 #include "chrome/browser/net/chrome_network_delegate.h" 31 #include "chrome/browser/net/chrome_network_delegate.h"
32 #include "chrome/common/extensions/api/web_request.h" 32 #include "chrome/common/extensions/api/web_request.h"
33 #include "chrome/common/extensions/extension_messages.h"
34 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
35 #include "chrome/test/base/testing_browser_process.h" 34 #include "chrome/test/base/testing_browser_process.h"
36 #include "chrome/test/base/testing_pref_service_syncable.h" 35 #include "chrome/test/base/testing_pref_service_syncable.h"
37 #include "chrome/test/base/testing_profile.h" 36 #include "chrome/test/base/testing_profile.h"
38 #include "chrome/test/base/testing_profile_manager.h" 37 #include "chrome/test/base/testing_profile_manager.h"
39 #include "content/public/common/url_constants.h" 38 #include "content/public/common/url_constants.h"
40 #include "content/public/test/test_browser_thread_bundle.h" 39 #include "content/public/test/test_browser_thread_bundle.h"
40 #include "extensions/common/extension_messages.h"
41 #include "extensions/common/features/feature.h" 41 #include "extensions/common/features/feature.h"
42 #include "net/base/auth.h" 42 #include "net/base/auth.h"
43 #include "net/base/capturing_net_log.h" 43 #include "net/base/capturing_net_log.h"
44 #include "net/base/net_util.h" 44 #include "net/base/net_util.h"
45 #include "net/base/request_priority.h" 45 #include "net/base/request_priority.h"
46 #include "net/base/upload_bytes_element_reader.h" 46 #include "net/base/upload_bytes_element_reader.h"
47 #include "net/base/upload_data_stream.h" 47 #include "net/base/upload_data_stream.h"
48 #include "net/base/upload_file_element_reader.h" 48 #include "net/base/upload_file_element_reader.h"
49 #include "net/dns/mock_host_resolver.h" 49 #include "net/dns/mock_host_resolver.h"
50 #include "net/url_request/url_request_job_factory_impl.h" 50 #include "net/url_request/url_request_job_factory_impl.h"
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2135 EXPECT_TRUE(credentials_set); 2135 EXPECT_TRUE(credentials_set);
2136 EXPECT_FALSE(auth3.Empty()); 2136 EXPECT_FALSE(auth3.Empty());
2137 EXPECT_EQ(username, auth1.username()); 2137 EXPECT_EQ(username, auth1.username());
2138 EXPECT_EQ(password, auth1.password()); 2138 EXPECT_EQ(password, auth1.password());
2139 EXPECT_EQ(1u, warning_set.size()); 2139 EXPECT_EQ(1u, warning_set.size());
2140 EXPECT_TRUE(HasWarning(warning_set, "extid2")); 2140 EXPECT_TRUE(HasWarning(warning_set, "extid2"));
2141 EXPECT_EQ(3u, capturing_net_log.GetSize()); 2141 EXPECT_EQ(3u, capturing_net_log.GetSize());
2142 } 2142 }
2143 2143
2144 } // namespace extensions 2144 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698