| OLD | NEW |
| 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/macros.h" |
| 5 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 7 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/chromeos/policy/device_policy_builder.h" | 9 #include "chrome/browser/chromeos/policy/device_policy_builder.h" |
| 9 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" | 10 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" |
| 10 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 11 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
| 11 #include "chrome/browser/metrics/variations/chrome_variations_service_client.h" | 12 #include "chrome/browser/metrics/variations/chrome_variations_service_client.h" |
| 12 #include "chrome/test/base/testing_browser_process.h" | 13 #include "chrome/test/base/testing_browser_process.h" |
| 13 #include "components/variations/service/variations_service.h" | 14 #include "components/variations/service/variations_service.h" |
| 14 #include "net/base/url_util.h" | 15 #include "net/base/url_util.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const GURL url = service->GetVariationsServerURL( | 55 const GURL url = service->GetVariationsServerURL( |
| 55 g_browser_process->local_state(), std::string()); | 56 g_browser_process->local_state(), std::string()); |
| 56 EXPECT_TRUE(base::StartsWith(url.spec(), default_variations_url, | 57 EXPECT_TRUE(base::StartsWith(url.spec(), default_variations_url, |
| 57 base::CompareCase::SENSITIVE)); | 58 base::CompareCase::SENSITIVE)); |
| 58 std::string value; | 59 std::string value; |
| 59 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value)); | 60 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value)); |
| 60 EXPECT_EQ("restricted", value); | 61 EXPECT_EQ("restricted", value); |
| 61 } | 62 } |
| 62 | 63 |
| 63 } // namespace policy | 64 } // namespace policy |
| OLD | NEW |