| OLD | NEW | 
|   1 // Copyright (c) 2012 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/base/resources.h" |   5 #include "remoting/host/resources.h" | 
|   6  |   6  | 
|   7 #include "remoting/base/string_resources.h" |   7 #include "remoting/base/string_resources.h" | 
 |   8 #include "testing/gtest/include/gtest/gtest.h" | 
|   8 #include "ui/base/l10n/l10n_util.h" |   9 #include "ui/base/l10n/l10n_util.h" | 
|   9 #include "testing/gtest/include/gtest/gtest.h" |  | 
|  10  |  10  | 
|  11 namespace remoting { |  11 namespace remoting { | 
|  12  |  12  | 
|  13 class ResourcesTest : public testing::Test { |  13 class ResourcesTest : public testing::Test { | 
|  14  protected: |  14  protected: | 
|  15   ResourcesTest(): resources_available_(false) { |  15   ResourcesTest() : resources_available_(false) {} | 
|  16   } |  | 
|  17  |  16  | 
|  18   void SetUp() override { resources_available_ = LoadResources("en-US"); } |  17   void SetUp() override { resources_available_ = LoadResources("en-US"); } | 
|  19  |  18  | 
|  20   void TearDown() override { UnloadResources(); } |  19   void TearDown() override { UnloadResources(); } | 
|  21  |  20  | 
|  22   bool resources_available_; |  21   bool resources_available_; | 
|  23 }; |  22 }; | 
|  24  |  23  | 
|  25 // TODO(alexeypa): Reenable the test once http://crbug.com/269143 (ChromeOS) and |  24 // TODO(alexeypa): Reenable the test once http://crbug.com/269143 (ChromeOS) and | 
|  26 // http://crbug.com/268043 (MacOS) are fixed. |  25 // http://crbug.com/268043 (MacOS) are fixed. | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
|  38   EXPECT_TRUE(resources_available_); |  37   EXPECT_TRUE(resources_available_); | 
|  39 #endif |  38 #endif | 
|  40  |  39  | 
|  41   if (resources_available_) { |  40   if (resources_available_) { | 
|  42     EXPECT_EQ(expected_product_name, |  41     EXPECT_EQ(expected_product_name, | 
|  43               l10n_util::GetStringUTF8(IDS_PRODUCT_NAME)); |  42               l10n_util::GetStringUTF8(IDS_PRODUCT_NAME)); | 
|  44   } |  43   } | 
|  45 } |  44 } | 
|  46  |  45  | 
|  47 }  // namespace remoting |  46 }  // namespace remoting | 
| OLD | NEW |