OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/media/media_internals.h" | 5 #include "content/browser/media/media_internals.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "content/public/test/test_browser_thread.h" | 10 #include "content/public/test/test_browser_thread.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 namespace { | 15 namespace { |
16 | 16 |
17 class MockObserverBaseClass { | 17 class MockObserverBaseClass { |
18 public: | 18 public: |
19 ~MockObserverBaseClass() {} | 19 ~MockObserverBaseClass() {} |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 DeleteItem("some.item"); | 125 DeleteItem("some.item"); |
126 EXPECT_FALSE(data()->Get("some.item", &out)); | 126 EXPECT_FALSE(data()->Get("some.item", &out)); |
127 EXPECT_TRUE(data()->Get("some", &out)); | 127 EXPECT_TRUE(data()->Get("some", &out)); |
128 | 128 |
129 DeleteItem("some"); | 129 DeleteItem("some"); |
130 EXPECT_FALSE(data()->Get("some.item", &out)); | 130 EXPECT_FALSE(data()->Get("some.item", &out)); |
131 EXPECT_FALSE(data()->Get("some", &out)); | 131 EXPECT_FALSE(data()->Get("some", &out)); |
132 } | 132 } |
133 | 133 |
134 } // namespace content | 134 } // namespace content |
OLD | NEW |