summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-30 13:13:34 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-30 13:13:34 +0000
commit7e3dcd91f5d1e75325183467e59886b892f457e1 (patch)
tree3b050fcf86d5030613b89aefc6b2079df127ae85 /chrome
parent75da90291fb214f0ac0de9fef9c0a9acd0a83594 (diff)
downloadchromium_src-7e3dcd91f5d1e75325183467e59886b892f457e1.zip
chromium_src-7e3dcd91f5d1e75325183467e59886b892f457e1.tar.gz
chromium_src-7e3dcd91f5d1e75325183467e59886b892f457e1.tar.bz2
Remove compatibility #defines in string_util.h
Review URL: http://codereview.chromium.org/17014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/navigation_controller_unittest.cc9
-rw-r--r--chrome/test/chrome_plugin/test_chrome_plugin.cc4
2 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/navigation_controller_unittest.cc b/chrome/browser/navigation_controller_unittest.cc
index b2e21cf..8ffd331 100644
--- a/chrome/browser/navigation_controller_unittest.cc
+++ b/chrome/browser/navigation_controller_unittest.cc
@@ -1168,7 +1168,8 @@ TEST_F(NavigationControllerTest, EnforceMaxNavigationCount) {
char buffer[128];
// Load up to the max count, all entries should be there.
for (url_index = 0; url_index < kMaxEntryCount; url_index++) {
- SNPrintF(buffer, 128, (scheme1() + "://www.a.com/%d").c_str(), url_index);
+ base::snprintf(buffer, 128, (scheme1() + "://www.a.com/%d").c_str(),
+ url_index);
GURL url(buffer);
contents->controller()->LoadURL(url, GURL(), PageTransition::TYPED);
contents->CompleteNavigationAsRenderer(url_index, url);
@@ -1180,7 +1181,8 @@ TEST_F(NavigationControllerTest, EnforceMaxNavigationCount) {
PrunedListener listener(contents->controller());
// Navigate some more.
- SNPrintF(buffer, 128, (scheme1() + "://www.a.com/%d").c_str(), url_index);
+ base::snprintf(buffer, 128, (scheme1() + "://www.a.com/%d").c_str(),
+ url_index);
GURL url(buffer);
contents->controller()->LoadURL(url, GURL(), PageTransition::TYPED);
contents->CompleteNavigationAsRenderer(url_index, url);
@@ -1198,7 +1200,8 @@ TEST_F(NavigationControllerTest, EnforceMaxNavigationCount) {
// More navigations.
for (int i = 0; i < 3; i++) {
- SNPrintF(buffer, 128, (scheme1() + "://www.a.com/%d").c_str(), url_index);
+ base::snprintf(buffer, 128, (scheme1() + "://www.a.com/%d").c_str(),
+ url_index);
url = GURL(buffer);
contents->controller()->LoadURL(url, GURL(), PageTransition::TYPED);
contents->CompleteNavigationAsRenderer(url_index, url);
diff --git a/chrome/test/chrome_plugin/test_chrome_plugin.cc b/chrome/test/chrome_plugin/test_chrome_plugin.cc
index 7343205..9e6d0e0 100644
--- a/chrome/test/chrome_plugin/test_chrome_plugin.cc
+++ b/chrome/test/chrome_plugin/test_chrome_plugin.cc
@@ -169,8 +169,8 @@ CPError STDCALL CPP_Shutdown() {
}
CPBool STDCALL CPP_ShouldInterceptRequest(CPRequest* request) {
- DCHECK(StrNCaseCmp(request->url, kChromeTestPluginProtocol,
- arraysize(kChromeTestPluginProtocol) - 1) == 0);
+ DCHECK(base::strncasecmp(request->url, kChromeTestPluginProtocol,
+ arraysize(kChromeTestPluginProtocol) - 1) == 0);
return FindPayload(request->url) != NULL;
}