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

Unified Diff: remoting/host/it2me/it2me_host_unittest.cc

Issue 2880853002: Reports host version, host os and host os version for It2me Host. (Closed)
Patch Set: Fix Unittest Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_host_unittest.cc
diff --git a/remoting/host/it2me/it2me_host_unittest.cc b/remoting/host/it2me/it2me_host_unittest.cc
index 7ed93bce31efc58fc23f4cc7bf47137267ce2a0f..77945ebc5ac71849e33d5a5b1e696c8e9f9db1fa 100644
--- a/remoting/host/it2me/it2me_host_unittest.cc
+++ b/remoting/host/it2me/it2me_host_unittest.cc
@@ -27,6 +27,10 @@
#include "remoting/signaling/fake_signal_strategy.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if defined(OS_LINUX)
+#include "base/linux_util.h"
+#endif // defined(OS_LINUX)
+
namespace remoting {
namespace {
@@ -182,6 +186,11 @@ It2MeHostTest::It2MeHostTest() : weak_factory_(this) {}
It2MeHostTest::~It2MeHostTest() {}
void It2MeHostTest::SetUp() {
+#if defined(OS_LINUX)
+ // Need to prime the host OS version value for linux to prevent IO on the
+ // network thread. base::GetLinuxDistro() caches the result.
+ base::GetLinuxDistro();
+#endif
message_loop_.reset(new base::MessageLoop());
run_loop_.reset(new base::RunLoop());
« no previous file with comments | « no previous file | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698