OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include <string> | |
6 | |
7 #include "chrome/browser/sync/util/get_session_name_task.h" | |
8 #include "testing/gtest/include/gtest/gtest.h" | |
9 | |
10 namespace browser_sync { | |
11 | |
12 typedef testing::Test SyncGetSessionNameTaskTest; | |
13 | |
14 #if defined(OS_WIN) | |
15 // The test is somewhat silly, and just verifies that we return a computer name. | |
16 TEST_F(SyncGetSessionNameTaskTest, GetComputerName) { | |
17 std::string computer_name = GetSessionNameTask::GetComputerName(); | |
18 EXPECT_TRUE(!computer_name.empty()); | |
19 } | |
20 #endif | |
21 | |
22 #if defined(OS_MACOSX) | |
23 // The test is somewhat silly, and just verifies that we return a hardware | |
24 // model name. | |
25 TEST_F(SyncGetSessionNameTaskTest, GetHardwareModelName) { | |
26 std::string hardware_model = GetSessionNameTask::GetHardwareModelName(); | |
27 EXPECT_TRUE(!hardware_model.empty()); | |
28 } | |
29 #endif | |
30 | |
31 } | |
OLD | NEW |