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

Side by Side Diff: chrome/browser/google_update_settings_linux_unittest.cc

Issue 115808: Respect Linux user prefs with regards to crash reporting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: with nits fixed, also some minor fixes to breakpad_linux.cc Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/google_update_settings_linux.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 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 "chrome/installer/util/google_update_settings.h"
6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "testing/platform_test.h"
8
9 class GoogleUpdateTest : public PlatformTest {
10 };
11
12 TEST_F(GoogleUpdateTest, StatsConstent) {
13 // Stats are off by default.
14 EXPECT_FALSE(GoogleUpdateSettings::GetCollectStatsConsent());
15
16 // Stats reporting is ON.
17 EXPECT_TRUE(GoogleUpdateSettings::SetCollectStatsConsent(true));
18 EXPECT_TRUE(GoogleUpdateSettings::GetCollectStatsConsent());
19
20 // Stats reporting is OFF.
21 EXPECT_TRUE(GoogleUpdateSettings::SetCollectStatsConsent(false));
22 EXPECT_FALSE(GoogleUpdateSettings::GetCollectStatsConsent());
23 }
OLDNEW
« no previous file with comments | « chrome/browser/google_update_settings_linux.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698