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

Side by Side Diff: chrome/renderer/extensions/extension_localization_peer_unittest.cc

Issue 20003004: reland crrev.com/212927 Move webkitplatformsupport_impl and related from glue to child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & allocator dep for components_unittests in shared_library2 Created 7 years, 5 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_localization_peer.h ('k') | chrome/renderer/security_filter_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698