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

Side by Side Diff: chrome/browser/download/download_item_model_unittest.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/download/download_item_model.h" 5 #include "chrome/browser/download/download_item_model.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "content/public/test/mock_download_item.h" 15 #include "content/public/test/mock_download_item.h"
16 #include "extensions/common/extension.h" 16 #include "extensions/common/extension.h"
17 #include "grit/generated_resources.h"
18 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
20 #include "ui/base/l10n/l10n_util.h"
21 #include "ui/base/resource/resource_bundle.h" 19 #include "ui/base/resource/resource_bundle.h"
22 #include "ui/base/text/bytes_formatting.h" 20 #include "ui/base/text/bytes_formatting.h"
23 #include "ui/gfx/font_list.h" 21 #include "ui/gfx/font_list.h"
24 #include "ui/gfx/text_utils.h" 22 #include "ui/gfx/text_utils.h"
25 23
26 using content::DownloadItem; 24 using content::DownloadItem;
27 using ::testing::Mock; 25 using ::testing::Mock;
28 using ::testing::NiceMock; 26 using ::testing::NiceMock;
29 using ::testing::Return; 27 using ::testing::Return;
30 using ::testing::ReturnRefOfCopy; 28 using ::testing::ReturnRefOfCopy;
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 EXPECT_CALL(item(), GetAutoOpened()) 418 EXPECT_CALL(item(), GetAutoOpened())
421 .WillRepeatedly(Return(test_case.auto_opened)); 419 .WillRepeatedly(Return(test_case.auto_opened));
422 420
423 EXPECT_EQ(test_case.expected_result, 421 EXPECT_EQ(test_case.expected_result,
424 model().ShouldRemoveFromShelfWhenComplete()) 422 model().ShouldRemoveFromShelfWhenComplete())
425 << "Test case: " << i; 423 << "Test case: " << i;
426 Mock::VerifyAndClearExpectations(&item()); 424 Mock::VerifyAndClearExpectations(&item());
427 Mock::VerifyAndClearExpectations(&model()); 425 Mock::VerifyAndClearExpectations(&model());
428 } 426 }
429 } 427 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_file_picker.cc ('k') | chrome/browser/download/download_status_updater_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698