cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ios / chrome / browser / translate / translate_service_ios_unittest.cc
blobf9ea614b08fa0801f7888005166694ad051619ce
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
3 // found in the LICENSE file.
5 #include "ios/chrome/browser/translate/translate_service_ios.h"
7 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
8 #include "ios/public/test/test_chrome_provider_initializer.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "url/gurl.h"
12 TEST(TranslateServiceIOSTest, CheckTranslatableURL) {
13 GURL empty_url = GURL(std::string());
14 EXPECT_FALSE(TranslateServiceIOS::IsTranslatableURL(empty_url));
16 std::string chrome =
17 std::string(ios::GetChromeBrowserProvider()->GetChromeUIScheme()) +
18 "://flags";
19 GURL chrome_url = GURL(chrome);
20 EXPECT_FALSE(TranslateServiceIOS::IsTranslatableURL(chrome_url));
22 GURL right_url = GURL("http://www.tamurayukari.com/");
23 EXPECT_TRUE(TranslateServiceIOS::IsTranslatableURL(right_url));