OLD | NEW |
| (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 | |
OLD | NEW |