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

Side by Side Diff: remoting/host/host_mock_objects.h

Issue 9582031: Don't crash in ~HostNPScriptObject() when the object wasn't initialized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
7 7
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "remoting/host/capturer.h" 9 #include "remoting/host/capturer.h"
10 #include "remoting/host/curtain.h" 10 #include "remoting/host/curtain.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 remoting::ChromotingHost* host, 74 remoting::ChromotingHost* host,
75 const remoting::ContinueWindow::ContinueSessionCallback& callback)); 75 const remoting::ContinueWindow::ContinueSessionCallback& callback));
76 MOCK_METHOD0(Hide, void()); 76 MOCK_METHOD0(Hide, void());
77 }; 77 };
78 78
79 class MockChromotingHostContext : public ChromotingHostContext { 79 class MockChromotingHostContext : public ChromotingHostContext {
80 public: 80 public:
81 MockChromotingHostContext(); 81 MockChromotingHostContext();
82 virtual ~MockChromotingHostContext(); 82 virtual ~MockChromotingHostContext();
83 83
84 MOCK_METHOD0(Start, void()); 84 MOCK_METHOD0(Start, bool());
85 MOCK_METHOD0(Stop, void()); 85 MOCK_METHOD0(Stop, void());
86 MOCK_METHOD0(jingle_thread, JingleThread*()); 86 MOCK_METHOD0(jingle_thread, JingleThread*());
87 MOCK_METHOD0(ui_message_loop, base::MessageLoopProxy*()); 87 MOCK_METHOD0(ui_message_loop, base::MessageLoopProxy*());
88 MOCK_METHOD0(main_message_loop, MessageLoop*()); 88 MOCK_METHOD0(main_message_loop, MessageLoop*());
89 MOCK_METHOD0(encode_message_loop, MessageLoop*()); 89 MOCK_METHOD0(encode_message_loop, MessageLoop*());
90 MOCK_METHOD0(network_message_loop, base::MessageLoopProxy*()); 90 MOCK_METHOD0(network_message_loop, base::MessageLoopProxy*());
91 91
92 private: 92 private:
93 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); 93 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext);
94 }; 94 };
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 MOCK_METHOD2(Authenticate, bool(const std::string& username, 134 MOCK_METHOD2(Authenticate, bool(const std::string& username,
135 const std::string& password)); 135 const std::string& password));
136 136
137 private: 137 private:
138 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 138 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
139 }; 139 };
140 140
141 } // namespace remoting 141 } // namespace remoting
142 142
143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698