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

Unified Diff: chrome/browser/printing/print_preview_unit_test_base.cc

Issue 10808006: Move printing.* prefs from local state to profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased just in case as the CL is a few days old now plus I got my branches all mixed up a bit. Created 8 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
Index: chrome/browser/printing/print_preview_unit_test_base.cc
diff --git a/chrome/browser/printing/print_preview_unit_test_base.cc b/chrome/browser/printing/print_preview_unit_test_base.cc
deleted file mode 100644
index 0fb0e33b44ee93eeedbf1fcb1e1e6fd545e263ae..0000000000000000000000000000000000000000
--- a/chrome/browser/printing/print_preview_unit_test_base.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/printing/print_preview_unit_test_base.h"
-
-#include "chrome/browser/prefs/browser_prefs.h"
-#include "chrome/common/pref_names.h"
-#include "chrome/test/base/testing_browser_process.h"
-#include "chrome/test/base/testing_pref_service.h"
-
-PrintPreviewUnitTestBase::PrintPreviewUnitTestBase() {
-}
-
-PrintPreviewUnitTestBase::~PrintPreviewUnitTestBase() {
-}
-
-void PrintPreviewUnitTestBase::SetUp() {
- BrowserWithTestWindowTest::SetUp();
-
- testing_local_state_.reset(new TestingPrefService);
- testing_local_state_->SetUserPref(prefs::kPrintPreviewDisabled,
- Value::CreateBooleanValue(false));
-
- chrome::RegisterLocalState(testing_local_state_.get());
- TestingBrowserProcess* testing_browser_process =
- static_cast<TestingBrowserProcess*>(g_browser_process);
- EXPECT_FALSE(testing_browser_process->local_state());
- testing_browser_process->SetLocalState(testing_local_state_.get());
-}
-
-void PrintPreviewUnitTestBase::TearDown() {
- EXPECT_EQ(testing_local_state_.get(), g_browser_process->local_state());
- TestingBrowserProcess* testing_browser_process =
- static_cast<TestingBrowserProcess*>(g_browser_process);
- testing_browser_process->SetLocalState(NULL);
- BrowserWithTestWindowTest::TearDown();
-}
« no previous file with comments | « chrome/browser/printing/print_preview_unit_test_base.h ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698