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

Side by Side Diff: chrome/common/chrome_content_client_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (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
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/chrome_paths.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "build/build_config.h"
12 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
13 #include "extensions/common/constants.h" 14 #include "extensions/common/constants.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 #include "url/origin.h" 17 #include "url/origin.h"
17 #include "url/url_util.h" 18 #include "url/url_util.h"
18 19
19 namespace { 20 namespace {
20 21
21 void CheckUserAgentStringOrdering(bool mobile_device) { 22 void CheckUserAgentStringOrdering(bool mobile_device) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 url::Component(0, strlen(extensions::kExtensionScheme)))); 169 url::Component(0, strlen(extensions::kExtensionScheme))));
169 170
170 GURL extension_url( 171 GURL extension_url(
171 "chrome-extension://abcdefghijklmnopqrstuvwxyzabcdef/foo.html"); 172 "chrome-extension://abcdefghijklmnopqrstuvwxyzabcdef/foo.html");
172 url::Origin origin(extension_url); 173 url::Origin origin(extension_url);
173 EXPECT_EQ("chrome-extension://abcdefghijklmnopqrstuvwxyzabcdef", 174 EXPECT_EQ("chrome-extension://abcdefghijklmnopqrstuvwxyzabcdef",
174 origin.Serialize()); 175 origin.Serialize());
175 } 176 }
176 177
177 } // namespace chrome_common 178 } // namespace chrome_common
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698