OLD | NEW |
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...) Loading... |
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_ |
OLD | NEW |