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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "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 #if defined(OS_CHROMEOS) | 12 #if defined(OS_CHROMEOS) |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "chromeos/chromeos_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
15 #endif // OS_CHROMEOS | 15 #endif // OS_CHROMEOS |
16 | 16 |
17 namespace syncer { | 17 namespace syncer { |
18 | 18 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 GetSessionName(message_loop_.message_loop_proxy(), | 80 GetSessionName(message_loop_.message_loop_proxy(), |
81 base::Bind(&GetSessionNameTest::SetSessionNameAndQuit, | 81 base::Bind(&GetSessionNameTest::SetSessionNameAndQuit, |
82 base::Unretained(this))); | 82 base::Unretained(this))); |
83 message_loop_.Run(); | 83 message_loop_.Run(); |
84 EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting()); | 84 EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting()); |
85 } | 85 } |
86 | 86 |
87 } // namespace | 87 } // namespace |
88 | 88 |
89 } // namespace syncer | 89 } // namespace syncer |
OLD | NEW |