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

Side by Side Diff: chrome/browser/ui/views/tabs/stacked_tab_strip_layout_unittest.cc

Issue 1545153002: Switch to standard integer types in chrome/browser/ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h" 5 #include "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
11 #include "base/macros.h"
9 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
11 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
12 #include "content/public/test/test_browser_thread_bundle.h" 15 #include "content/public/test/test_browser_thread_bundle.h"
13 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
14 #include "ui/views/view.h" 17 #include "ui/views/view.h"
15 #include "ui/views/view_model.h" 18 #include "ui/views/view_model.h"
16 19
17 namespace { 20 namespace {
18 21
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // Location can be honored. 557 // Location can be honored.
555 { { 0, 300, 100, 10, 2, 0, 3, "", "0 2 4 40 130 198 200" }, 40 }, 558 { { 0, 300, 100, 10, 2, 0, 3, "", "0 2 4 40 130 198 200" }, 40 },
556 }; 559 };
557 for (size_t i = 0; i < arraysize(test_data); ++i) { 560 for (size_t i = 0; i < arraysize(test_data); ++i) {
558 CreateLayout(test_data[i].common_data); 561 CreateLayout(test_data[i].common_data);
559 layout_->SetActiveTabLocation(test_data[i].location); 562 layout_->SetActiveTabLocation(test_data[i].location);
560 EXPECT_EQ(test_data[i].common_data.expected_bounds, BoundsString()) << 563 EXPECT_EQ(test_data[i].common_data.expected_bounds, BoundsString()) <<
561 " at " << i; 564 " at " << i;
562 } 565 }
563 } 566 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h ('k') | chrome/browser/ui/views/tabs/tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698