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

Unified Diff: blimp/client/core/blimp_client_context_impl_unittest.cc

Issue 2132163002: Add BlimpClientContext and factory with real and dummy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-blimp-client-core-public-to-blimp-client
Patch Set: git merge origin/master before CQ for good measure 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/blimp_client_context_impl_unittest.cc
diff --git a/blimp/client/core/blimp_client_context_impl_unittest.cc b/blimp/client/core/blimp_client_context_impl_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2b4204b107367409fffe07324c186b52238f8426
--- /dev/null
+++ b/blimp/client/core/blimp_client_context_impl_unittest.cc
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "blimp/client/core/blimp_client_context_impl.h"
+
+#include "blimp/client/public/blimp_client_context_delegate.h"
+#include "blimp/client/public/blimp_contents.h"
+#include "blimp/client/test/test_blimp_client_context_delegate.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace blimp {
+namespace client {
+namespace {
+
+TEST(BlimpClientContextImpl, CreatedBlimpContentsGetsHelpersAttached) {
+ BlimpClientContextImpl blimp_client_context;
+ TestBlimpClientContextDelegate delegate;
+ blimp_client_context.SetDelegate(&delegate);
+
+ std::unique_ptr<BlimpContents> blimp_contents =
+ blimp_client_context.CreateBlimpContents();
+ DCHECK(blimp_contents);
+ DCHECK_EQ(blimp_contents.get(),
+ delegate.GetBlimpContentsWithLastAttachedHelpers());
+}
+
+} // namespace
+} // namespace client
+} // namespace blimp
« 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