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

Side by Side Diff: content/public/test/mock_render_process_host.h

Issue 2655413004: Strip out stream counting from AudioRendererHost. (Closed)
Patch Set: Fix all teh tests. Created 3 years, 10 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 (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 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <memory> 10 #include <memory>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void EnableSendQueue() override; 50 void EnableSendQueue() override;
51 int GetNextRoutingID() override; 51 int GetNextRoutingID() override;
52 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; 52 void AddRoute(int32_t routing_id, IPC::Listener* listener) override;
53 void RemoveRoute(int32_t routing_id) override; 53 void RemoveRoute(int32_t routing_id) override;
54 void AddObserver(RenderProcessHostObserver* observer) override; 54 void AddObserver(RenderProcessHostObserver* observer) override;
55 void RemoveObserver(RenderProcessHostObserver* observer) override; 55 void RemoveObserver(RenderProcessHostObserver* observer) override;
56 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override; 56 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override;
57 void WidgetRestored() override; 57 void WidgetRestored() override;
58 void WidgetHidden() override; 58 void WidgetHidden() override;
59 int VisibleWidgetCount() const override; 59 int VisibleWidgetCount() const override;
60 void AudioStateChanged() override;
61 bool IsForGuestsOnly() const override; 60 bool IsForGuestsOnly() const override;
61 void OnAudioStreamAdded() override;
62 void OnAudioStreamRemoved() override;
62 StoragePartition* GetStoragePartition() const override; 63 StoragePartition* GetStoragePartition() const override;
63 virtual void AddWord(const base::string16& word); 64 virtual void AddWord(const base::string16& word);
64 bool Shutdown(int exit_code, bool wait) override; 65 bool Shutdown(int exit_code, bool wait) override;
65 bool FastShutdownIfPossible() override; 66 bool FastShutdownIfPossible() override;
66 bool FastShutdownStarted() const override; 67 bool FastShutdownStarted() const override;
67 base::ProcessHandle GetHandle() const override; 68 base::ProcessHandle GetHandle() const override;
68 bool IsReady() const override; 69 bool IsReady() const override;
69 int GetID() const override; 70 int GetID() const override;
70 bool HasConnection() const override; 71 bool HasConnection() const override;
71 void SetIgnoreInputEvents(bool ignore_input_events) override; 72 void SetIgnoreInputEvents(bool ignore_input_events) override;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // for deleting all MockRenderProcessHosts that have not deleted by a test in 193 // for deleting all MockRenderProcessHosts that have not deleted by a test in
193 // the destructor and prevent them from being leaked. 194 // the destructor and prevent them from being leaked.
194 mutable ScopedVector<MockRenderProcessHost> processes_; 195 mutable ScopedVector<MockRenderProcessHost> processes_;
195 196
196 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 197 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
197 }; 198 };
198 199
199 } // namespace content 200 } // namespace content
200 201
201 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 202 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698