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

Side by Side Diff: remoting/test/it2me_standalone_host_main.cc

Issue 1923573006: Implement a dummy host to do capturing and analysis only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments Created 4 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/at_exit.h"
6 #include "base/command_line.h"
7 #include "base/logging.h"
8 #include "remoting/host/resources.h"
9 #include "remoting/proto/event.pb.h"
10 #include "remoting/test/it2me_standalone_host.h"
11
12 #if defined(OS_LINUX)
13 #include <gtk/gtk.h>
14 #include <X11/Xlib.h>
15
16 #include "base/linux_util.h"
17 #endif // defined(OS_LINUX)
18
19 int main(int argc, const char** argv) {
20 base::AtExitManager at_exit_manager;
21 base::CommandLine::Init(argc, argv);
22 remoting::test::It2MeStandaloneHost host;
23
24 #if defined(OS_LINUX)
25 // Required in order for us to run multiple X11 threads.
26 XInitThreads();
27
28 // Required for any calls into GTK functions, such as the Disconnect and
29 // Continue windows. Calling with nullptr arguments because we don't have
30 // any command line arguments for gtk to consume.
31 gtk_init(nullptr, nullptr);
32
33 // Need to prime the host OS version value for linux to prevent IO on the
34 // network thread. base::GetLinuxDistro() caches the result.
35 base::GetLinuxDistro();
36
37 bool result = remoting::LoadResources("en-US");
joedow 2016/05/04 22:58:49 Move below and remove the result check since it is
38 DCHECK(result);
39 #endif // OS_LINUX
40 host.StartOutputTimer();
41 host.Run();
42 }
OLDNEW
« remoting/test/it2me_standalone_host.cc ('K') | « remoting/test/it2me_standalone_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698