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

Side by Side Diff: remoting/host/resources_unittest.cc

Issue 1863933002: [remoting android] Add and build host code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-host-add-native
Patch Set: Add resources_android.cc Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/host/resources.h" 5 #include "remoting/host/resources.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "remoting/base/string_resources.h" 8 #include "remoting/base/string_resources.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // TODO(alexeypa): Reenable the test once http://crbug.com/269143 (ChromeOS) and 25 // TODO(alexeypa): Reenable the test once http://crbug.com/269143 (ChromeOS) and
26 // http://crbug.com/268043 (MacOS) are fixed. 26 // http://crbug.com/268043 (MacOS) are fixed.
27 TEST_F(ResourcesTest, DISABLED_ProductName) { 27 TEST_F(ResourcesTest, DISABLED_ProductName) {
28 #if defined(GOOGLE_CHROME_BUILD) 28 #if defined(GOOGLE_CHROME_BUILD)
29 std::string expected_product_name = "Chrome Remote Desktop"; 29 std::string expected_product_name = "Chrome Remote Desktop";
30 #else // defined(GOOGLE_CHROME_BUILD) 30 #else // defined(GOOGLE_CHROME_BUILD)
31 std::string expected_product_name = "Chromoting"; 31 std::string expected_product_name = "Chromoting";
32 #endif // !defined(GOOGLE_CHROME_BUILD) 32 #endif // !defined(GOOGLE_CHROME_BUILD)
33 33
34 // Chrome-style i18n is not used on Windows. 34 // Chrome-style i18n is not used on Windows or Android.
35 #if defined(OS_WIN) 35 #if defined(OS_WIN) || defined(OS_ANDROID)
36 EXPECT_FALSE(resources_available_); 36 EXPECT_FALSE(resources_available_);
37 #else 37 #else
38 EXPECT_TRUE(resources_available_); 38 EXPECT_TRUE(resources_available_);
39 #endif 39 #endif
40 40
41 if (resources_available_) { 41 if (resources_available_) {
42 EXPECT_EQ(expected_product_name, 42 EXPECT_EQ(expected_product_name,
43 l10n_util::GetStringUTF8(IDS_PRODUCT_NAME)); 43 l10n_util::GetStringUTF8(IDS_PRODUCT_NAME));
44 } 44 }
45 } 45 }
46 46
47 } // namespace remoting 47 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/resources_android.cc ('k') | remoting/host/security_key/gnubby_auth_handler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698