| 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" | 9 #include "chrome/common/extensions/message_bundle.h" |
| 10 #include "chrome/renderer/extensions/extension_localization_peer.h" | 10 #include "chrome/renderer/extensions/extension_localization_peer.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/glue/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; |
| 21 using testing::Invoke; | 21 using testing::Invoke; |
| 22 using testing::StrEq; | 22 using testing::StrEq; |
| 23 using testing::Return; | 23 using testing::Return; |
| 24 | 24 |
| 25 static const char* const kExtensionUrl_1 = | 25 static const char* const kExtensionUrl_1 = |
| 26 "chrome-extension://some_id/popup.css"; | 26 "chrome-extension://some_id/popup.css"; |
| 27 | 27 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 EXPECT_CALL(*original_peer_, | 241 EXPECT_CALL(*original_peer_, |
| 242 OnReceivedData(StrEq(message.data()), message.length(), -1)); | 242 OnReceivedData(StrEq(message.data()), message.length(), -1)); |
| 243 | 243 |
| 244 EXPECT_CALL(*original_peer_, OnReceivedResponse(_)); | 244 EXPECT_CALL(*original_peer_, OnReceivedResponse(_)); |
| 245 EXPECT_CALL(*original_peer_, OnCompletedRequest( | 245 EXPECT_CALL(*original_peer_, OnCompletedRequest( |
| 246 net::OK, false, "", base::TimeTicks())); | 246 net::OK, false, "", base::TimeTicks())); |
| 247 | 247 |
| 248 filter_peer->OnCompletedRequest( | 248 filter_peer->OnCompletedRequest( |
| 249 net::OK, false, std::string(), base::TimeTicks()); | 249 net::OK, false, std::string(), base::TimeTicks()); |
| 250 } | 250 } |
| OLD | NEW |