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

Side by Side Diff: chrome/browser/translate/translate_service_unittest.cc

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/translate/translate_service.h" 5 #include "chrome/browser/translate/translate_service.h"
6 6
7 #include "content/public/common/url_constants.h" 7 #include "content/public/common/url_constants.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 15 matching lines...) Expand all
26 EXPECT_FALSE(TranslateService::IsTranslatableURL(devtools_url)); 26 EXPECT_FALSE(TranslateService::IsTranslatableURL(devtools_url));
27 27
28 #if defined(OS_CHROMEOS) 28 #if defined(OS_CHROMEOS)
29 std::string filemanager = std::string(extensions::kExtensionScheme) + 29 std::string filemanager = std::string(extensions::kExtensionScheme) +
30 std::string("://") + 30 std::string("://") +
31 std::string(file_manager::kFileManagerAppId); 31 std::string(file_manager::kFileManagerAppId);
32 GURL filemanager_url = GURL(filemanager); 32 GURL filemanager_url = GURL(filemanager);
33 EXPECT_FALSE(TranslateService::IsTranslatableURL(filemanager_url)); 33 EXPECT_FALSE(TranslateService::IsTranslatableURL(filemanager_url));
34 #endif 34 #endif
35 35
36 std::string ftp = std::string(content::kFtpScheme) + "://google.com/pub"; 36 std::string ftp = std::string(url::kFtpScheme) + "://google.com/pub";
37 GURL ftp_url = GURL(ftp); 37 GURL ftp_url = GURL(ftp);
38 EXPECT_FALSE(TranslateService::IsTranslatableURL(ftp_url)); 38 EXPECT_FALSE(TranslateService::IsTranslatableURL(ftp_url));
39 39
40 GURL right_url = GURL("http://www.tamurayukari.com/"); 40 GURL right_url = GURL("http://www.tamurayukari.com/");
41 EXPECT_TRUE(TranslateService::IsTranslatableURL(right_url)); 41 EXPECT_TRUE(TranslateService::IsTranslatableURL(right_url));
42 } 42 }
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_service.cc ('k') | chrome/browser/ui/app_list/search/common/webservice_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698