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

Side by Side Diff: src/platform/window_manager/test_lib.cc

Issue 501116: wm: Update namespace and header define guards. (Closed)
Patch Set: move using directive inside of namespace for consistency Created 11 years 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) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 "window_manager/test_lib.h" 5 #include "window_manager/test_lib.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include <gflags/gflags.h> 9 #include <gflags/gflags.h>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "window_manager/clutter_interface.h" 13 #include "window_manager/clutter_interface.h"
14 #include "window_manager/mock_x_connection.h" 14 #include "window_manager/mock_x_connection.h"
15 #include "window_manager/window_manager.h" 15 #include "window_manager/window_manager.h"
16 #include "window_manager/wm_ipc.h" 16 #include "window_manager/wm_ipc.h"
17 17
18 namespace chromeos { 18 namespace window_manager {
19 19
20 testing::AssertionResult BytesAreEqual( 20 testing::AssertionResult BytesAreEqual(
21 const char* expected_expr, 21 const char* expected_expr,
22 const char* actual_expr, 22 const char* actual_expr,
23 const char* size_expr, 23 const char* size_expr,
24 const unsigned char* expected, 24 const unsigned char* expected,
25 const unsigned char* actual, 25 const unsigned char* actual,
26 size_t size) { 26 size_t size) {
27 for (size_t i = 0; i < size; ++i) { 27 for (size_t i = 0; i < size; ++i) {
28 if (expected[i] != actual[i]) { 28 if (expected[i] != actual[i]) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 if (expected.empty()) { 165 if (expected.empty()) {
166 EXPECT_FALSE(exists); 166 EXPECT_FALSE(exists);
167 } else { 167 } else {
168 EXPECT_TRUE(exists); 168 EXPECT_TRUE(exists);
169 ASSERT_EQ(expected.size(), actual.size()); 169 ASSERT_EQ(expected.size(), actual.size());
170 for (size_t i = 0; i < actual.size(); ++i) 170 for (size_t i = 0; i < actual.size(); ++i)
171 EXPECT_EQ(expected[i], actual[i]); 171 EXPECT_EQ(expected[i], actual[i]);
172 } 172 }
173 } 173 }
174 174
175 } // namespace chromeos 175 } // namespace window_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698