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

Side by Side Diff: chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller_unittest.mm

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase - of course... it would be one of my patches I conflict with :| Created 5 years, 7 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
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/media_picker/desktop_media_picker_controller.h" 5 #import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/run_loop.h"
8 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
9 #include "base/run_loop.h"
10 #include "chrome/browser/media/desktop_media_list_observer.h" 10 #include "chrome/browser/media/desktop_media_list_observer.h"
11 #include "chrome/browser/media/fake_desktop_media_list.h" 11 #include "chrome/browser/media/fake_desktop_media_list.h"
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
13 #include "content/public/test/test_browser_thread_bundle.h" 13 #include "content/public/test/test_browser_thread_bundle.h"
14 #include "testing/gtest_mac.h" 14 #include "testing/gtest_mac.h"
15 15
16 @interface DesktopMediaPickerController (ExposedForTesting) 16 @interface DesktopMediaPickerController (ExposedForTesting)
17 - (IKImageBrowserView*)sourceBrowser; 17 - (IKImageBrowserView*)sourceBrowser;
18 - (NSButton*)shareButton; 18 - (NSButton*)shareButton;
19 - (NSArray*)items; 19 - (NSArray*)items;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 media_list_->SetSourceName(1, base::ASCIIToUTF16("foo")); 202 media_list_->SetSourceName(1, base::ASCIIToUTF16("foo"));
203 NSArray* items = [controller_ items]; 203 NSArray* items = [controller_ items];
204 EXPECT_NSEQ(@"foo", [[items objectAtIndex:1] imageTitle]); 204 EXPECT_NSEQ(@"foo", [[items objectAtIndex:1] imageTitle]);
205 205
206 media_list_->MoveSource(1, 0); 206 media_list_->MoveSource(1, 0);
207 EXPECT_NSEQ(@"foo", [[items objectAtIndex:0] imageTitle]); 207 EXPECT_NSEQ(@"foo", [[items objectAtIndex:0] imageTitle]);
208 208
209 media_list_->MoveSource(0, 1); 209 media_list_->MoveSource(0, 1);
210 EXPECT_NSEQ(@"foo", [[items objectAtIndex:1] imageTitle]); 210 EXPECT_NSEQ(@"foo", [[items objectAtIndex:1] imageTitle]);
211 } 211 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm ('k') | chrome/browser/ui/cocoa/new_tab_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698