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

Side by Side Diff: src/platform/window_manager/util_test.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 <gflags/gflags.h> 5 #include <gflags/gflags.h>
6 #include <gtest/gtest.h> 6 #include <gtest/gtest.h>
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chromeos/string.h" 9 #include "chromeos/string.h"
10 #include "window_manager/test_lib.h" 10 #include "window_manager/test_lib.h"
11 #include "window_manager/util.h" 11 #include "window_manager/util.h"
12 12
13 DEFINE_bool(logtostderr, false, 13 DEFINE_bool(logtostderr, false,
14 "Print debugging messages to stderr (suppressed otherwise)"); 14 "Print debugging messages to stderr (suppressed otherwise)");
15 15
16 namespace chromeos { 16 namespace window_manager {
17
18 using chromeos::SplitString;
17 19
18 class UtilTest : public ::testing::Test { 20 class UtilTest : public ::testing::Test {
19 protected: 21 protected:
20 // Helper function for testStacker(). 22 // Helper function for testStacker().
21 // 'expected' is a space-separated list of strings in the order in which 23 // 'expected' is a space-separated list of strings in the order in which
22 // they should appear in 'actual'. 24 // they should appear in 'actual'.
23 void CheckStackerOutput(const std::list<std::string>& actual, 25 void CheckStackerOutput(const std::list<std::string>& actual,
24 const std::string& expected) { 26 const std::string& expected) {
25 std::vector<std::string> expected_parts; 27 std::vector<std::string> expected_parts;
26 SplitString(expected, &expected_parts); 28 SplitString(expected, &expected_parts);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 bytemap.Clear(0x01); 136 bytemap.Clear(0x01);
135 EXPECT_PRED_FORMAT3( 137 EXPECT_PRED_FORMAT3(
136 BytesAreEqual, 138 BytesAreEqual,
137 reinterpret_cast<unsigned const char*>("\x01\x01\x01\x01" 139 reinterpret_cast<unsigned const char*>("\x01\x01\x01\x01"
138 "\x01\x01\x01\x01" 140 "\x01\x01\x01\x01"
139 "\x01\x01\x01\x01"), 141 "\x01\x01\x01\x01"),
140 bytemap.bytes(), 142 bytemap.bytes(),
141 width * height); 143 width * height);
142 } 144 }
143 145
144 } // namespace chromeos 146 } // namespace window_manager
145 147
146 int main(int argc, char **argv) { 148 int main(int argc, char **argv) {
147 return chromeos::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); 149 return window_manager::InitAndRunTests(&argc, argv, &FLAGS_logtostderr);
148 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698