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

Side by Side Diff: chrome/browser/sync/util/get_session_name_unittest.cc

Issue 9565050: [Sync] Simplify GetSessionName interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win compile failure Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/util/get_session_name_task_unittest.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/get_session_name_task_unittest.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698