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

Unified Diff: blimp/engine/browser_tests/integration_test.cc

Issue 2349073002: Blimp Settings framework on the c++ side (Closed)
Patch Set: nits and sync to head Created 4 years, 2 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/engine/BUILD.gn ('k') | blimp/engine/browser_tests/navigation_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/browser_tests/integration_test.cc
diff --git a/blimp/engine/browser_tests/integration_test.cc b/blimp/engine/browser_tests/integration_test.cc
index e1311382faeb982749c51bc78102c278c99a0e7c..f238c32ce5a9e61c0529184406c97d74af3dcb70 100644
--- a/blimp/engine/browser_tests/integration_test.cc
+++ b/blimp/engine/browser_tests/integration_test.cc
@@ -20,6 +20,7 @@
#include "blimp/engine/browser_tests/blimp_browser_test.h"
#include "blimp/engine/browser_tests/blimp_contents_view_readback_helper.h"
#include "blimp/engine/browser_tests/waitable_content_pump.h"
+#include "components/prefs/testing_pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_test.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -82,13 +83,15 @@ class BlimpIntegrationTest : public BlimpBrowserTest {
delegate_ = base::MakeUnique<client::TestBlimpClientContextDelegate>();
+ client::BlimpClientContext::RegisterPrefs(prefs_.registry());
+
context_ = base::WrapUnique<client::BlimpClientContext>(
client::BlimpClientContext::Create(
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::IO),
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::FILE),
- std::move(compositor_dependencies)));
+ std::move(compositor_dependencies), &prefs_));
context_->SetDelegate(delegate_.get());
context_->ConnectWithAssignment(GetAssignment());
@@ -112,6 +115,7 @@ class BlimpIntegrationTest : public BlimpBrowserTest {
std::unique_ptr<client::BlimpContents> contents_;
private:
+ TestingPrefServiceSimple prefs_;
std::unique_ptr<gl::DisableNullDrawGLBindings> scoped_enable_gl_bindings_;
DISALLOW_COPY_AND_ASSIGN(BlimpIntegrationTest);
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | blimp/engine/browser_tests/navigation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698