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

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

Issue 326383005: Remove base/platform_file.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
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_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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/serial/serial_io_handler.h ('k') | chrome/common/chrome_utility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698