diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 21:53:12 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 21:53:12 +0000 |
commit | 26b627e55c5e9c1bd4d00bb6613fea7a6cb2c463 (patch) | |
tree | 4e7ae2b960c69828ec30df00c579b69cc75df7e0 /remoting/protocol | |
parent | 6f4280104722d792dfea82b40ed4d299c39e7786 (diff) | |
download | chromium_src-26b627e55c5e9c1bd4d00bb6613fea7a6cb2c463.zip chromium_src-26b627e55c5e9c1bd4d00bb6613fea7a6cb2c463.tar.gz chromium_src-26b627e55c5e9c1bd4d00bb6613fea7a6cb2c463.tar.bz2 |
Fix up mac test client and simple host for remoting.
Remoting's test client and simple host weren't initializing the NSApplication correctly which is required for MessageLoops to work on the Mac. These are just test apps that we use, so I felt it was ok to bring in code from base/test.
Also added a check to message_pump_mac.mm to verify that NSApp is initialized before we attempt to use it.
BUG=NONE
TEST=BUILD
Review URL: http://codereview.chromium.org/6461023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol')
-rw-r--r-- | remoting/protocol/protocol_test_client.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/protocol/protocol_test_client.cc b/remoting/protocol/protocol_test_client.cc index cf8d486..849bbd7 100644 --- a/remoting/protocol/protocol_test_client.cc +++ b/remoting/protocol/protocol_test_client.cc @@ -16,6 +16,7 @@ extern "C" { #include "base/at_exit.h" #include "base/command_line.h" #include "base/nss_util.h" +#include "base/test/mock_chrome_application_mac.h" #include "base/time.h" #include "net/base/completion_callback.h" #include "net/base/io_buffer.h" @@ -354,6 +355,10 @@ int main(int argc, char** argv) { base::EnsureNSPRInit(); base::EnsureNSSInit(); +#if defined(OS_MACOSX) + mock_cr_app::RegisterMockCrApp(); +#endif // OS_MACOSX + std::string host_jid(cmd_line->GetSwitchValueASCII("host_jid")); if (!cmd_line->HasSwitch("username")) |