| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "ui/ozone/platform/drm/gpu/proxy_helpers.h" | 5 #include "ui/ozone/platform/drm/gpu/proxy_helpers.h" |
| 6 |
| 6 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 7 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 8 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 9 #include "base/threading/thread_checker_impl.h" | 10 #include "base/threading/thread_checker_impl.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 12 |
| 12 namespace ui { | 13 namespace ui { |
| 13 | 14 |
| 14 class ProxyHelpersTest : public testing::Test { | 15 class ProxyHelpersTest : public testing::Test { |
| 15 public: | 16 public: |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 base::Bind(&ProxyHelpersTest::QuitFunction, base::Unretained(this), 42)); | 151 base::Bind(&ProxyHelpersTest::QuitFunction, base::Unretained(this), 42)); |
| 151 | 152 |
| 152 run_loop_.Run(); | 153 run_loop_.Run(); |
| 153 | 154 |
| 154 EXPECT_EQ(value_type_, 102); | 155 EXPECT_EQ(value_type_, 102); |
| 155 EXPECT_EQ(*move_type_, 102); | 156 EXPECT_EQ(*move_type_, 102); |
| 156 EXPECT_TRUE(original_string_ == "This is a string"); | 157 EXPECT_TRUE(original_string_ == "This is a string"); |
| 157 EXPECT_TRUE(derived_string_ == "This is a stringer"); | 158 EXPECT_TRUE(derived_string_ == "This is a stringer"); |
| 158 } | 159 } |
| 159 } // namespace ui | 160 } // namespace ui |
| OLD | NEW |