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

Side by Side Diff: chrome/browser/download/download_browsertest.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 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 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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_
7 7
8 #include "base/basictypes.h" 8 #include <stddef.h>
9
10 #include "base/macros.h"
9 #include "content/public/test/download_test_observer.h" 11 #include "content/public/test/download_test_observer.h"
10 12
11 // DownloadTestObserver subclass that observes a download until it transitions 13 // DownloadTestObserver subclass that observes a download until it transitions
12 // from IN_PROGRESS to another state, but only after StartObserving() is called. 14 // from IN_PROGRESS to another state, but only after StartObserving() is called.
13 class DownloadTestObserverNotInProgress : public content::DownloadTestObserver { 15 class DownloadTestObserverNotInProgress : public content::DownloadTestObserver {
14 public: 16 public:
15 DownloadTestObserverNotInProgress(content::DownloadManager* download_manager, 17 DownloadTestObserverNotInProgress(content::DownloadManager* download_manager,
16 size_t count); 18 size_t count);
17 ~DownloadTestObserverNotInProgress() override; 19 ~DownloadTestObserverNotInProgress() override;
18 20
19 void StartObserving(); 21 void StartObserving();
20 22
21 private: 23 private:
22 bool IsDownloadInFinalState(content::DownloadItem* download) override; 24 bool IsDownloadInFinalState(content::DownloadItem* download) override;
23 25
24 bool started_observing_; 26 bool started_observing_;
25 27
26 DISALLOW_COPY_AND_ASSIGN(DownloadTestObserverNotInProgress); 28 DISALLOW_COPY_AND_ASSIGN(DownloadTestObserverNotInProgress);
27 }; 29 };
28 30
29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_ 31 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate_unittest.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698