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

Side by Side Diff: chrome/browser/media_galleries/media_galleries_dialog_controller_test_util.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_TEST_UT IL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_TEST_UT IL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_TEST_UT IL_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_TEST_UT IL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h"
9 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h" 10 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h"
10 11
11 class MockMediaGalleriesDialog : public MediaGalleriesDialog { 12 class MockMediaGalleriesDialog : public MediaGalleriesDialog {
12 public: 13 public:
13 typedef base::Callback<void(int update_count)> DialogDestroyedCallback; 14 typedef base::Callback<void(int update_count)> DialogDestroyedCallback;
14 15
15 explicit MockMediaGalleriesDialog(const DialogDestroyedCallback& callback); 16 explicit MockMediaGalleriesDialog(const DialogDestroyedCallback& callback);
16 ~MockMediaGalleriesDialog() override; 17 ~MockMediaGalleriesDialog() override;
17 18
18 // MediaGalleriesDialog implementation. 19 // MediaGalleriesDialog implementation.
19 void UpdateGalleries() override; 20 void UpdateGalleries() override;
20 21
21 // Number up times UpdateResults has been called. 22 // Number up times UpdateResults has been called.
22 int update_count() const; 23 int update_count() const;
23 24
24 private: 25 private:
25 // MediaGalleriesDialog implementation. 26 // MediaGalleriesDialog implementation.
26 void AcceptDialogForTesting() override; 27 void AcceptDialogForTesting() override;
27 28
28 int update_count_; 29 int update_count_;
29 30
30 DialogDestroyedCallback dialog_destroyed_callback_; 31 DialogDestroyedCallback dialog_destroyed_callback_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(MockMediaGalleriesDialog); 33 DISALLOW_COPY_AND_ASSIGN(MockMediaGalleriesDialog);
33 }; 34 };
34 35
35 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_TEST _UTIL_H_ 36 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_TEST _UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698