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

Side by Side Diff: content/browser/media/webrtc_internals_unittest.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "content/browser/media/webrtc_internals.h" 8 #include "content/browser/media/webrtc_internals.h"
9 #include "content/browser/media/webrtc_internals_ui_observer.h" 9 #include "content/browser/media/webrtc_internals_ui_observer.h"
10 #include "content/public/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using base::Value; 13 using base::Value;
14 using base::DictionaryValue; 14 using base::DictionaryValue;
15 using std::string; 15 using std::string;
16 16
17 namespace content { 17 namespace content {
18 18
19 namespace { 19 namespace {
20 static const string kContraints = "c"; 20 static const string kContraints = "c";
21 static const string kServers = "s"; 21 static const string kServers = "s";
22 static const string kUrl = "u"; 22 static const string kUrl = "u";
23 23
24 class MockWebRTCInternalsProxy : public WebRTCInternalsUIObserver { 24 class MockWebRTCInternalsProxy : public WebRTCInternalsUIObserver {
25 public: 25 public:
26 void OnUpdate(const string& command, const Value* value) OVERRIDE { 26 virtual void OnUpdate(const string& command, const Value* value) OVERRIDE {
27 command_ = command; 27 command_ = command;
28 value_.reset(value->DeepCopy()); 28 value_.reset(value->DeepCopy());
29 } 29 }
30 30
31 string command() { 31 string command() {
32 return command_; 32 return command_;
33 } 33 }
34 34
35 Value* value() { 35 Value* value() {
36 return value_.get(); 36 return value_.get();
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 EXPECT_TRUE(dict->GetString("type", &value)); 151 EXPECT_TRUE(dict->GetString("type", &value));
152 EXPECT_EQ(update_type, value); 152 EXPECT_EQ(update_type, value);
153 EXPECT_TRUE(dict->GetString("value", &value)); 153 EXPECT_TRUE(dict->GetString("value", &value));
154 EXPECT_EQ(update_value, value); 154 EXPECT_EQ(update_value, value);
155 155
156 WebRTCInternals::GetInstance()->RemovePeerConnection(1, 2); 156 WebRTCInternals::GetInstance()->RemovePeerConnection(1, 2);
157 WebRTCInternals::GetInstance()->RemoveObserver(observer.get()); 157 WebRTCInternals::GetInstance()->RemoveObserver(observer.get());
158 } 158 }
159 159
160 } // namespace content 160 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698