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

Side by Side Diff: blimp/client/core/contents/blimp_contents_observer_unittest.cc

Issue 2320923002: Add a full Blimp integration test. (Closed)
Patch Set: Fix build break with chrome embedder Created 4 years, 3 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 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
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
OLDNEW
« no previous file with comments | « blimp/client/core/contents/blimp_contents_manager_unittest.cc ('k') | blimp/client/core/contents/blimp_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698