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

Side by Side Diff: chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc

Issue 14890005: Enable Clang warnings in .cc files for Linux+[Aura/ChromeOS] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 | « build/common.gypi ('k') | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/string_util.h" 5 #include "base/string_util.h"
6 #include "chrome/browser/chromeos/policy/device_policy_builder.h" 6 #include "chrome/browser/chromeos/policy/device_policy_builder.h"
7 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" 7 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h"
8 #include "chrome/browser/metrics/variations/variations_service.h" 8 #include "chrome/browser/metrics/variations/variations_service.h"
9 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" 9 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h"
10 #include "chrome/test/base/testing_browser_process.h" 10 #include "chrome/test/base/testing_browser_process.h"
11 #include "net/base/url_util.h" 11 #include "net/base/url_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace policy { 14 namespace policy {
15 15
16 class VariationsServiceDevicePolicyTest : public DevicePolicyCrosBrowserTest { 16 class VariationsServiceDevicePolicyTest : public DevicePolicyCrosBrowserTest {
17 protected: 17 protected:
18 VariationsServiceDevicePolicyTest() {} 18 VariationsServiceDevicePolicyTest() {}
19 19
20 void SetUpInProcessBrowserTestFixture() OVERRIDE { 20 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
21 DevicePolicyCrosBrowserTest::SetUpInProcessBrowserTestFixture(); 21 DevicePolicyCrosBrowserTest::SetUpInProcessBrowserTestFixture();
22 22
23 InstallOwnerKey(); 23 InstallOwnerKey();
24 SetSpecificDevicePolicies(); 24 SetSpecificDevicePolicies();
25 RefreshDevicePolicy(); 25 RefreshDevicePolicy();
26 } 26 }
27 27
28 void SetSpecificDevicePolicies() { 28 void SetSpecificDevicePolicies() {
29 // Setup the device policy DeviceVariationsRestrictParameter. 29 // Setup the device policy DeviceVariationsRestrictParameter.
30 enterprise_management::ChromeDeviceSettingsProto& proto( 30 enterprise_management::ChromeDeviceSettingsProto& proto(
(...skipping 14 matching lines...) Expand all
45 const GURL url = 45 const GURL url =
46 chrome_variations::VariationsService::GetVariationsServerURL( 46 chrome_variations::VariationsService::GetVariationsServerURL(
47 g_browser_process->local_state()); 47 g_browser_process->local_state());
48 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true)); 48 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true));
49 std::string value; 49 std::string value;
50 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value)); 50 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value));
51 EXPECT_EQ("restricted", value); 51 EXPECT_EQ("restricted", value);
52 } 52 }
53 53
54 } // namespace policy 54 } // namespace policy
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698