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

Unified Diff: base/win/win_util_unittest.cc

Issue 7740055: Set user-visible machine names and devices types for synced sessions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Split off platform-specific code to various util files, addressed comments Created 9 years, 4 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
Index: base/win/win_util_unittest.cc
diff --git a/base/win/win_util_unittest.cc b/base/win/win_util_unittest.cc
index b79ed56a0114b427a54703dfe3baa408a4f4b6f5..cb66cb61e19a219540d5d2bd1a1afd52bac1f6b7 100644
--- a/base/win/win_util_unittest.cc
+++ b/base/win/win_util_unittest.cc
@@ -46,6 +46,12 @@ TEST(BaseWinUtilTest, TestGetUserSidString) {
EXPECT_TRUE(!user_sid.empty());
}
+// The test is somewhat silly, and just verifies that we return a computer name.
+TEST(BaseWinUtilTest, TestGetComputerName) {
+ std::string computer_name = GetComputerName();
+ EXPECT_TRUE(!computer_name.empty());
+}
+
TEST(BaseWinUtilTest, TestGetNonClientMetrics) {
NONCLIENTMETRICS metrics = {0};
GetNonClientMetrics(&metrics);

Powered by Google App Engine
This is Rietveld 408576698