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

Side by Side Diff: chrome/browser/first_run/first_run_browsertest.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser_process.h" 5 #include "chrome/browser/browser_process.h"
6 #include "chrome/browser/first_run/first_run.h" 6 #include "chrome/browser/first_run/first_run.h"
7 #include "chrome/browser/pref_service.h" 7 #include "chrome/browser/prefs/pref_service.h"
8 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
9 #include "chrome/test/in_process_browser_test.h" 9 #include "chrome/test/in_process_browser_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 typedef InProcessBrowserTest FirstRunBrowserTest; 12 typedef InProcessBrowserTest FirstRunBrowserTest;
13 13
14 IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetShowFirstRunBubblePref) { 14 IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetShowFirstRunBubblePref) {
15 EXPECT_FALSE(g_browser_process->local_state()->FindPreference( 15 EXPECT_FALSE(g_browser_process->local_state()->FindPreference(
16 prefs::kShouldShowFirstRunBubble)); 16 prefs::kShouldShowFirstRunBubble));
17 EXPECT_TRUE(FirstRun::SetShowFirstRunBubblePref(true)); 17 EXPECT_TRUE(FirstRun::SetShowFirstRunBubblePref(true));
(...skipping 25 matching lines...) Expand all
43 43
44 IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetMinimalFirstRunBubblePref) { 44 IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetMinimalFirstRunBubblePref) {
45 EXPECT_FALSE(g_browser_process->local_state()->FindPreference( 45 EXPECT_FALSE(g_browser_process->local_state()->FindPreference(
46 prefs::kShouldUseMinimalFirstRunBubble)); 46 prefs::kShouldUseMinimalFirstRunBubble));
47 EXPECT_TRUE(FirstRun::SetMinimalFirstRunBubblePref()); 47 EXPECT_TRUE(FirstRun::SetMinimalFirstRunBubblePref());
48 ASSERT_TRUE(g_browser_process->local_state()->FindPreference( 48 ASSERT_TRUE(g_browser_process->local_state()->FindPreference(
49 prefs::kShouldUseMinimalFirstRunBubble)); 49 prefs::kShouldUseMinimalFirstRunBubble));
50 EXPECT_TRUE(g_browser_process->local_state()->GetBoolean( 50 EXPECT_TRUE(g_browser_process->local_state()->GetBoolean(
51 prefs::kShouldUseMinimalFirstRunBubble)); 51 prefs::kShouldUseMinimalFirstRunBubble));
52 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698