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

Side by Side Diff: components/sync/base/get_session_name_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "sync/util/get_session_name.h" 12 #include "components/sync/base/get_session_name.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 #if defined(OS_CHROMEOS) 15 #if defined(OS_CHROMEOS)
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "chromeos/chromeos_switches.h" 17 #include "chromeos/chromeos_switches.h"
18 #endif // OS_CHROMEOS 18 #endif // OS_CHROMEOS
19 19
20 namespace syncer { 20 namespace syncer {
21 21
22 namespace { 22 namespace {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 GetSessionName(message_loop_.task_runner(), 69 GetSessionName(message_loop_.task_runner(),
70 base::Bind(&GetSessionNameTest::SetSessionNameAndQuit, 70 base::Bind(&GetSessionNameTest::SetSessionNameAndQuit,
71 base::Unretained(this))); 71 base::Unretained(this)));
72 base::RunLoop().Run(); 72 base::RunLoop().Run();
73 EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting()); 73 EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting());
74 } 74 }
75 75
76 } // namespace 76 } // namespace
77 77
78 } // namespace syncer 78 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/base/get_session_name_mac.mm ('k') | components/sync/base/get_session_name_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698