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

Side by Side Diff: blimp/engine/app/blimp_system_url_request_context_getter_unittest.cc

Issue 1960813002: Fix DCHECK failure and add unittest for BlimpSystemURLContextGetter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use TestBlimpBrowserThreadBundle instead of deprecated test class. Created 4 years, 7 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/engine/app/blimp_system_url_request_context_getter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "blimp/engine/app/blimp_system_url_request_context_getter.h"
6
7 #include "base/macros.h"
8 #include "base/memory/ref_counted.h"
9 #include "content/public/test/test_browser_thread_bundle.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 namespace blimp {
13 namespace engine {
14
15 namespace {
16 class BlimpSystemURLRequestContextGetterTest : public testing::Test {
17 public:
18 BlimpSystemURLRequestContextGetterTest()
19 : system_url_request_context_getter_(
20 new BlimpSystemURLRequestContextGetter()) {}
21
22 protected:
23 content::TestBrowserThreadBundle thread_bundle_;
24 scoped_refptr<BlimpSystemURLRequestContextGetter>
25 system_url_request_context_getter_;
26 };
27
28 TEST_F(BlimpSystemURLRequestContextGetterTest, GetURLRequestContext) {
29 ASSERT_NE(nullptr,
30 system_url_request_context_getter_->GetURLRequestContext());
31 }
32
33 } // namespace
34
35 } // namespace engine
36 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_system_url_request_context_getter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698