Chromium Code Reviews| 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 "remoting/base/auto_thread.h" | |
|
Do not use (sergeyu)
2017/05/16 00:20:46
includes order is wrong here
gab
2017/05/16 14:12:50
No it's not, this is git cl format's output.
The
| |
| 5 #include "base/bind.h" | 6 #include "base/bind.h" |
| 6 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 7 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/message_loop/message_loop.h" | |
| 8 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 9 #include "base/scoped_native_library.h" | 11 #include "base/scoped_native_library.h" |
| 10 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 11 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 12 #include "remoting/base/auto_thread.h" | |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 15 |
| 15 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 16 #include <objbase.h> | 17 #include <objbase.h> |
| 17 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
| 18 #endif | 19 #endif |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 const char kThreadName[] = "Test thread"; | 23 const char kThreadName[] = "Test thread"; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 196 // Whether the thread is the "main" STA apartment depends upon previous | 197 // Whether the thread is the "main" STA apartment depends upon previous |
| 197 // COM activity in this test process, so allow both types here. | 198 // COM activity in this test process, so allow both types here. |
| 198 EXPECT_TRUE(apt_type == APTTYPE_MAINSTA || apt_type == APTTYPE_STA); | 199 EXPECT_TRUE(apt_type == APTTYPE_MAINSTA || apt_type == APTTYPE_STA); |
| 199 } else { | 200 } else { |
| 200 EXPECT_EQ(E_NOTIMPL, hresult); | 201 EXPECT_EQ(E_NOTIMPL, hresult); |
| 201 } | 202 } |
| 202 } | 203 } |
| 203 #endif // defined(OS_WIN) | 204 #endif // defined(OS_WIN) |
| 204 | 205 |
| 205 } // namespace remoting | 206 } // namespace remoting |
| OLD | NEW |