OLD | NEW |
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 "chrome/browser/android/offline_pages/request_coordinator_factory.h" | 5 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" |
6 | 6 |
7 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 7 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
8 #include "components/offline_pages/background/request_coordinator.h" | 8 #include "components/offline_pages/core/background/request_coordinator.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace offline_pages { | 12 namespace offline_pages { |
13 | 13 |
14 class RequestCoordinatorFactoryTest : public ChromeRenderViewHostTestHarness { | 14 class RequestCoordinatorFactoryTest : public ChromeRenderViewHostTestHarness { |
15 public: | 15 public: |
16 RequestCoordinatorFactoryTest(); | 16 RequestCoordinatorFactoryTest(); |
17 ~RequestCoordinatorFactoryTest() override; | 17 ~RequestCoordinatorFactoryTest() override; |
18 | 18 |
(...skipping 18 matching lines...) Expand all Loading... |
37 | 37 |
38 RequestCoordinator* coordinator2 = | 38 RequestCoordinator* coordinator2 = |
39 factory->GetForBrowserContext(browser_context()); | 39 factory->GetForBrowserContext(browser_context()); |
40 // Calling twice gives us the same coordinator. | 40 // Calling twice gives us the same coordinator. |
41 EXPECT_EQ(coordinator1, coordinator2); | 41 EXPECT_EQ(coordinator1, coordinator2); |
42 | 42 |
43 FlushBlockingPool(); | 43 FlushBlockingPool(); |
44 } | 44 } |
45 | 45 |
46 } // namespace offline_pages | 46 } // namespace offline_pages |
OLD | NEW |