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