OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/client/public/contents/blimp_contents_observer.h" | 5 #include "blimp/client/public/contents/blimp_contents_observer.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "blimp/client/core/compositor/blimp_compositor_dependencies.h" | 8 #include "blimp/client/core/compositor/blimp_compositor_dependencies.h" |
9 #include "blimp/client/core/contents/blimp_contents_impl.h" | 9 #include "blimp/client/core/contents/blimp_contents_impl.h" |
10 #include "blimp/client/core/contents/ime_feature.h" | 10 #include "blimp/client/core/contents/ime_feature.h" |
11 #include "blimp/client/core/render_widget/render_widget_feature.h" | 11 #include "blimp/client/core/render_widget/render_widget_feature.h" |
12 #include "blimp/client/support/compositor/mock_compositor_dependencies.h" | 12 #include "blimp/client/test/compositor/mock_compositor_dependencies.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 | 16 |
17 #if defined(OS_ANDROID) | 17 #if defined(OS_ANDROID) |
18 #include "ui/android/window_android.h" | 18 #include "ui/android/window_android.h" |
19 #endif // defined(OS_ANDROID) | 19 #endif // defined(OS_ANDROID) |
20 | 20 |
21 namespace { | 21 namespace { |
22 const int kDummyBlimpContentsId = 0; | 22 const int kDummyBlimpContentsId = 0; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 EXPECT_EQ(observer->blimp_contents(), contents.get()); | 88 EXPECT_EQ(observer->blimp_contents(), contents.get()); |
89 contents.reset(); | 89 contents.reset(); |
90 | 90 |
91 EXPECT_EQ(observer->blimp_contents(), nullptr); | 91 EXPECT_EQ(observer->blimp_contents(), nullptr); |
92 } | 92 } |
93 | 93 |
94 } // namespace | 94 } // namespace |
95 | 95 |
96 } // namespace client | 96 } // namespace client |
97 } // namespace blimp | 97 } // namespace blimp |
OLD | NEW |