OLD | NEW |
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_browser_test_utils.h" | 5 #include "chrome/browser/translate/translate_browser_test_utils.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/platform_file.h" | |
12 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
13 #include "chrome/browser/component_updater/cld_component_installer.h" | 12 #include "chrome/browser/component_updater/cld_component_installer.h" |
14 #include "chrome/browser/translate/chrome_translate_client.h" | 13 #include "chrome/browser/translate/chrome_translate_client.h" |
15 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
16 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
18 | 17 |
19 namespace { | 18 namespace { |
20 | 19 |
21 // This constant yields the version of the CRX that has been extracted into | 20 // This constant yields the version of the CRX that has been extracted into |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 if (ChromeTranslateClient::s_cached_file_) { | 158 if (ChromeTranslateClient::s_cached_file_) { |
160 // Leaks any open handle, no way to avoid safely. | 159 // Leaks any open handle, no way to avoid safely. |
161 ChromeTranslateClient::s_cached_file_ = NULL; | 160 ChromeTranslateClient::s_cached_file_ = NULL; |
162 ChromeTranslateClient::s_cached_data_offset_ = 0; | 161 ChromeTranslateClient::s_cached_data_offset_ = 0; |
163 ChromeTranslateClient::s_cached_data_length_ = 0; | 162 ChromeTranslateClient::s_cached_data_length_ = 0; |
164 } | 163 } |
165 #endif // defined(CLD2_DYNAMIC_MODE) | 164 #endif // defined(CLD2_DYNAMIC_MODE) |
166 } | 165 } |
167 | 166 |
168 } // namespace test | 167 } // namespace test |
OLD | NEW |