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

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

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/user_policy_token_loader.h ('k') | chrome/browser/chromeos/policy/wildcard_login_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698