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 <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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "net/base/upload_file_element_reader.h" | 50 #include "net/base/upload_file_element_reader.h" |
51 #include "net/dns/mock_host_resolver.h" | 51 #include "net/dns/mock_host_resolver.h" |
52 #include "net/log/test_net_log.h" | 52 #include "net/log/test_net_log.h" |
53 #include "net/url_request/url_request_job_factory_impl.h" | 53 #include "net/url_request/url_request_job_factory_impl.h" |
54 #include "net/url_request/url_request_test_util.h" | 54 #include "net/url_request/url_request_test_util.h" |
55 #include "testing/gtest/include/gtest/gtest-message.h" | 55 #include "testing/gtest/include/gtest/gtest-message.h" |
56 #include "testing/gtest/include/gtest/gtest.h" | 56 #include "testing/gtest/include/gtest/gtest.h" |
57 | 57 |
58 namespace helpers = extension_web_request_api_helpers; | 58 namespace helpers = extension_web_request_api_helpers; |
59 namespace keys = extension_web_request_api_constants; | 59 namespace keys = extension_web_request_api_constants; |
60 namespace web_request = extensions::core_api::web_request; | 60 namespace web_request = extensions::api::web_request; |
61 | 61 |
62 using base::BinaryValue; | 62 using base::BinaryValue; |
63 using base::DictionaryValue; | 63 using base::DictionaryValue; |
64 using base::ListValue; | 64 using base::ListValue; |
65 using base::StringValue; | 65 using base::StringValue; |
66 using base::Time; | 66 using base::Time; |
67 using base::TimeDelta; | 67 using base::TimeDelta; |
68 using base::Value; | 68 using base::Value; |
69 using helpers::CalculateOnAuthRequiredDelta; | 69 using helpers::CalculateOnAuthRequiredDelta; |
70 using helpers::CalculateOnBeforeRequestDelta; | 70 using helpers::CalculateOnBeforeRequestDelta; |
(...skipping 2164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2235 EXPECT_TRUE(credentials_set); | 2235 EXPECT_TRUE(credentials_set); |
2236 EXPECT_FALSE(auth3.Empty()); | 2236 EXPECT_FALSE(auth3.Empty()); |
2237 EXPECT_EQ(username, auth1.username()); | 2237 EXPECT_EQ(username, auth1.username()); |
2238 EXPECT_EQ(password, auth1.password()); | 2238 EXPECT_EQ(password, auth1.password()); |
2239 EXPECT_EQ(1u, warning_set.size()); | 2239 EXPECT_EQ(1u, warning_set.size()); |
2240 EXPECT_TRUE(HasWarning(warning_set, "extid2")); | 2240 EXPECT_TRUE(HasWarning(warning_set, "extid2")); |
2241 EXPECT_EQ(3u, capturing_net_log.GetSize()); | 2241 EXPECT_EQ(3u, capturing_net_log.GetSize()); |
2242 } | 2242 } |
2243 | 2243 |
2244 } // namespace extensions | 2244 } // namespace extensions |
OLD | NEW |