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

Unified Diff: chrome/renderer/media/webrtc_logging_handler_impl_unittest.cc

Issue 15741003: Moving WebRTC logging related files from content to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/media/webrtc_logging_handler_impl_unittest.cc
diff --git a/content/renderer/media/webrtc_logging_handler_impl_unittest.cc b/chrome/renderer/media/webrtc_logging_handler_impl_unittest.cc
similarity index 88%
rename from content/renderer/media/webrtc_logging_handler_impl_unittest.cc
rename to chrome/renderer/media/webrtc_logging_handler_impl_unittest.cc
index fc70baa8aeedc01fa2c693e26ddc420121015de1..3f47bbda8f92529eaa402edb8fb39436c84662e1 100644
--- a/content/renderer/media/webrtc_logging_handler_impl_unittest.cc
+++ b/chrome/renderer/media/webrtc_logging_handler_impl_unittest.cc
@@ -5,12 +5,10 @@
#include <string>
#include "base/process_util.h"
-#include "content/common/partial_circular_buffer.h"
-#include "content/renderer/media/webrtc_logging_handler_impl.h"
+#include "chrome/common/partial_circular_buffer.h"
+#include "chrome/renderer/media/webrtc_logging_handler_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace content {
-
TEST(WebRtcLoggingHandlerImplTest, Basic) {
const uint32 kTestLogSize = 1024; // 1 KB
const char kTestString[] = "abcdefghijklmnopqrstuvwxyz";
@@ -18,7 +16,7 @@ TEST(WebRtcLoggingHandlerImplTest, Basic) {
base::MessageLoop message_loop(base::MessageLoop::TYPE_IO);
scoped_ptr<WebRtcLoggingHandlerImpl> logging_handler(
- new WebRtcLoggingHandlerImpl(message_loop.message_loop_proxy()));
+ new WebRtcLoggingHandlerImpl(message_loop.message_loop_proxy(), NULL));
base::SharedMemory shared_memory;
ASSERT_TRUE(shared_memory.CreateAndMapAnonymous(kTestLogSize));
@@ -30,7 +28,7 @@ TEST(WebRtcLoggingHandlerImplTest, Basic) {
logging_handler->LogMessage(kTestString);
logging_handler->LogMessage(kTestString);
- content::PartialCircularBuffer read_pcb(
+ PartialCircularBuffer read_pcb(
reinterpret_cast<uint8*>(shared_memory.memory()), kTestLogSize);
// Size is calculated as (sizeof(kTestString) - 1 for terminating null
@@ -46,5 +44,3 @@ TEST(WebRtcLoggingHandlerImplTest, Basic) {
ref_output.append("\n");
EXPECT_STREQ(ref_output.c_str(), read_buffer);
}
-
-} // namespace content
« no previous file with comments | « chrome/renderer/media/webrtc_logging_handler_impl.cc ('k') | chrome/renderer/media/webrtc_logging_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698