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

Side by Side Diff: ceee/ie/testing/mock_broker_and_friends.h

Issue 5258006: Restart of ceee_broker on crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « ceee/ie/plugin/bho/webrequest_notifier.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Mock implementation of Broker and related objects. 5 // Mock implementation of Broker and related objects.
6 #ifndef CEEE_IE_TESTING_MOCK_BROKER_AND_FRIENDS_H_ 6 #ifndef CEEE_IE_TESTING_MOCK_BROKER_AND_FRIENDS_H_
7 #define CEEE_IE_TESTING_MOCK_BROKER_AND_FRIENDS_H_ 7 #define CEEE_IE_TESTING_MOCK_BROKER_AND_FRIENDS_H_
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 DWORD status_code, 387 DWORD status_code,
388 const base::Time& time_stamp)); 388 const base::Time& time_stamp));
389 MOCK_METHOD4(OnRequestSent, HRESULT(int request_id, 389 MOCK_METHOD4(OnRequestSent, HRESULT(int request_id,
390 const wchar_t* url, 390 const wchar_t* url,
391 const char* ip, 391 const char* ip,
392 const base::Time& time_stamp)); 392 const base::Time& time_stamp));
393 }; 393 };
394 394
395 class MockBrokerRpcClient : public BrokerRpcClient { 395 class MockBrokerRpcClient : public BrokerRpcClient {
396 public: 396 public:
397 explicit MockBrokerRpcClient(bool allow_restart)
398 : BrokerRpcClient(allow_restart) {}
399 MOCK_METHOD1(StartServer, HRESULT(IUnknown**));
397 MOCK_METHOD1(Connect, HRESULT(bool)); 400 MOCK_METHOD1(Connect, HRESULT(bool));
398 MOCK_METHOD0(Disconnect, void()); 401 MOCK_METHOD0(Disconnect, void());
399 MOCK_CONST_METHOD0(is_connected, bool()); 402 MOCK_CONST_METHOD0(is_connected, bool());
400 MOCK_METHOD2(FireEvent, HRESULT(const char*, const char*)); 403 MOCK_METHOD2(FireEvent, HRESULT(const char*, const char*));
401 MOCK_METHOD2(SendUmaHistogramTimes, HRESULT(const char*, int)); 404 MOCK_METHOD2(SendUmaHistogramTimes, HRESULT(const char*, int));
402 MOCK_METHOD5(SendUmaHistogramData, HRESULT(const char*, int, int, int, int)); 405 MOCK_METHOD5(SendUmaHistogramData, HRESULT(const char*, int, int, int, int));
403 }; 406 };
404 407
405 408
406 } // namespace testing 409 } // namespace testing
407 410
408 #endif // CEEE_IE_TESTING_MOCK_BROKER_AND_FRIENDS_H_ 411 #endif // CEEE_IE_TESTING_MOCK_BROKER_AND_FRIENDS_H_
OLDNEW
« no previous file with comments | « ceee/ie/plugin/bho/webrequest_notifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698