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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments 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 | « sync/util/get_session_name_mac.mm ('k') | sync/util/get_session_name_win.h » ('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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "chrome/browser/sync/util/get_session_name.h" 9 #include "sync/util/get_session_name.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace browser_sync { 12 namespace browser_sync {
13 13
14 namespace { 14 namespace {
15 15
16 class GetSessionNameTest : public ::testing::Test { 16 class GetSessionNameTest : public ::testing::Test {
17 public: 17 public:
18 void SetSessionNameAndQuit(const std::string& session_name) { 18 void SetSessionNameAndQuit(const std::string& session_name) {
19 session_name_ = session_name; 19 session_name_ = session_name;
(...skipping 19 matching lines...) Expand all
39 GetSessionName(message_loop_.message_loop_proxy(), 39 GetSessionName(message_loop_.message_loop_proxy(),
40 base::Bind(&GetSessionNameTest::SetSessionNameAndQuit, 40 base::Bind(&GetSessionNameTest::SetSessionNameAndQuit,
41 base::Unretained(this))); 41 base::Unretained(this)));
42 message_loop_.Run(); 42 message_loop_.Run();
43 EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting()); 43 EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting());
44 } 44 }
45 45
46 } // namespace 46 } // namespace
47 47
48 } // namespace browser_sync 48 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/util/get_session_name_mac.mm ('k') | sync/util/get_session_name_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698