Chromium Code Reviews

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

Issue 5824002: Fixed unittests. (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.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « ceee/ie/broker/broker_rpc_unittest.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 378 matching lines...)
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) 397 explicit MockBrokerRpcClient(bool allow_restart)
398 : BrokerRpcClient(allow_restart) {} 398 : BrokerRpcClient(allow_restart) {}
399 MOCK_METHOD1(StartServer, HRESULT(IUnknown**)); 399 MOCK_METHOD1(StartServer, HRESULT(ICeeeBrokerRegistrar**));
400 MOCK_METHOD1(Connect, HRESULT(bool)); 400 MOCK_METHOD1(Connect, HRESULT(bool));
401 MOCK_METHOD0(Disconnect, void()); 401 MOCK_METHOD0(Disconnect, void());
402 MOCK_CONST_METHOD0(is_connected, bool()); 402 MOCK_CONST_METHOD0(is_connected, bool());
403 MOCK_METHOD2(FireEvent, HRESULT(const char*, const char*)); 403 MOCK_METHOD2(FireEvent, HRESULT(const char*, const char*));
404 MOCK_METHOD2(SendUmaHistogramTimes, HRESULT(const char*, int)); 404 MOCK_METHOD2(SendUmaHistogramTimes, HRESULT(const char*, int));
405 MOCK_METHOD5(SendUmaHistogramData, HRESULT(const char*, int, int, int, int)); 405 MOCK_METHOD5(SendUmaHistogramData, HRESULT(const char*, int, int, int, int));
406 }; 406 };
407 407
408 408
409 } // namespace testing 409 } // namespace testing
410 410
411 #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/broker/broker_rpc_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine