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

Side by Side Diff: blimp/client/core/blimp_client_context_impl_unittest.cc

Issue 2166563003: Split //blimp/client/core to relevant parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-assignment-source
Patch Set: Created 4 years, 5 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
« no previous file with comments | « blimp/client/core/blimp_client_context_impl.cc ('k') | blimp/client/core/blimp_contents_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/core/blimp_client_context_impl.h" 5 #include "blimp/client/core/blimp_client_context_impl.h"
6 6
7 #include "blimp/client/public/blimp_client_context_delegate.h" 7 #include "blimp/client/public/blimp_client_context_delegate.h"
8 #include "blimp/client/public/blimp_contents.h" 8 #include "blimp/client/public/contents/blimp_contents.h"
9 #include "blimp/client/test/test_blimp_client_context_delegate.h" 9 #include "blimp/client/test/test_blimp_client_context_delegate.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace blimp { 12 namespace blimp {
13 namespace client { 13 namespace client {
14 namespace { 14 namespace {
15 15
16 TEST(BlimpClientContextImpl, CreatedBlimpContentsGetsHelpersAttached) { 16 TEST(BlimpClientContextImpl, CreatedBlimpContentsGetsHelpersAttached) {
17 BlimpClientContextImpl blimp_client_context; 17 BlimpClientContextImpl blimp_client_context;
18 TestBlimpClientContextDelegate delegate; 18 TestBlimpClientContextDelegate delegate;
19 blimp_client_context.SetDelegate(&delegate); 19 blimp_client_context.SetDelegate(&delegate);
20 20
21 std::unique_ptr<BlimpContents> blimp_contents = 21 std::unique_ptr<BlimpContents> blimp_contents =
22 blimp_client_context.CreateBlimpContents(); 22 blimp_client_context.CreateBlimpContents();
23 DCHECK(blimp_contents); 23 DCHECK(blimp_contents);
24 DCHECK_EQ(blimp_contents.get(), 24 DCHECK_EQ(blimp_contents.get(),
25 delegate.GetBlimpContentsWithLastAttachedHelpers()); 25 delegate.GetBlimpContentsWithLastAttachedHelpers());
26 } 26 }
27 27
28 } // namespace 28 } // namespace
29 } // namespace client 29 } // namespace client
30 } // namespace blimp 30 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/blimp_client_context_impl.cc ('k') | blimp/client/core/blimp_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698