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

Side by Side Diff: chrome/browser/sync/util/get_session_name_task_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
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/get_session_name_task_mac.mm ('k') | chrome/browser/sync/util/get_session_name_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698