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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_shelf_controller_unittest.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "chrome/browser/ui/cocoa/download/download_shelf_controller.h" 5 #import "chrome/browser/ui/cocoa/download/download_shelf_controller.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #import "base/mac/scoped_block.h" 12 #import "base/mac/scoped_block.h"
13 #import "base/mac/scoped_nsobject.h" 13 #import "base/mac/scoped_nsobject.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "chrome/browser/download/download_shelf.h" 15 #include "chrome/browser/download/download_shelf.h"
16 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
17 #import "chrome/browser/ui/cocoa/download/download_item_controller.h" 16 #import "chrome/browser/ui/cocoa/download/download_item_controller.h"
17 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h"
18 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" 18 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
19 #include "content/public/test/mock_download_item.h" 19 #include "content/public/test/mock_download_item.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 #include "testing/platform_test.h" 21 #include "testing/platform_test.h"
22 #import "third_party/ocmock/OCMock/OCMock.h" 22 #import "third_party/ocmock/OCMock/OCMock.h"
23 #import "third_party/ocmock/gtest_support.h" 23 #import "third_party/ocmock/gtest_support.h"
24 #import "ui/events/test/cocoa_test_event_utils.h" 24 #import "ui/events/test/cocoa_test_event_utils.h"
25 25
26 using ::testing::Return; 26 using ::testing::Return;
27 using ::testing::AnyNumber; 27 using ::testing::AnyNumber;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 }]; 400 }];
401 [shelf_ showDownloadShelf:NO isUserAction:NO]; 401 [shelf_ showDownloadShelf:NO isUserAction:NO];
402 run_loop.Run(); 402 run_loop.Run();
403 EXPECT_TRUE([[shelf_ view] isHidden]); 403 EXPECT_TRUE([[shelf_ view] isHidden]);
404 404
405 [shelf_ showDownloadShelf:YES isUserAction:NO]; 405 [shelf_ showDownloadShelf:YES isUserAction:NO];
406 EXPECT_FALSE([[shelf_ view] isHidden]); 406 EXPECT_FALSE([[shelf_ view] isHidden]);
407 } 407 }
408 408
409 } // namespace 409 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698