OLD | NEW |
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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/common/extensions/message_bundle.h" | |
10 #include "chrome/renderer/extensions/extension_localization_peer.h" | 9 #include "chrome/renderer/extensions/extension_localization_peer.h" |
| 10 #include "extensions/common/message_bundle.h" |
11 #include "ipc/ipc_sender.h" | 11 #include "ipc/ipc_sender.h" |
12 #include "ipc/ipc_sync_message.h" | 12 #include "ipc/ipc_sync_message.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "net/url_request/url_request_status.h" | 14 #include "net/url_request/url_request_status.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "webkit/child/resource_loader_bridge.h" | 17 #include "webkit/child/resource_loader_bridge.h" |
18 | 18 |
19 using testing::_; | 19 using testing::_; |
20 using testing::DoAll; | 20 using testing::DoAll; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 EXPECT_CALL(*original_peer_, | 242 EXPECT_CALL(*original_peer_, |
243 OnReceivedData(StrEq(message.data()), message.length(), -1)); | 243 OnReceivedData(StrEq(message.data()), message.length(), -1)); |
244 | 244 |
245 EXPECT_CALL(*original_peer_, OnReceivedResponse(_)); | 245 EXPECT_CALL(*original_peer_, OnReceivedResponse(_)); |
246 EXPECT_CALL(*original_peer_, OnCompletedRequest( | 246 EXPECT_CALL(*original_peer_, OnCompletedRequest( |
247 net::OK, false, false, "", base::TimeTicks(), -1)); | 247 net::OK, false, false, "", base::TimeTicks(), -1)); |
248 | 248 |
249 filter_peer->OnCompletedRequest( | 249 filter_peer->OnCompletedRequest( |
250 net::OK, false, false, std::string(), base::TimeTicks(), -1); | 250 net::OK, false, false, std::string(), base::TimeTicks(), -1); |
251 } | 251 } |
OLD | NEW |